Creating dynamic buttons actions ASP .NET & C#

carljungle

New Member
I'm creating a mini inbox using ASP .NET & C# I'm getting messages dynamically using c# and viewing it on the page using InnerHtml property. Now I want to attach actions to the buttons I created before . \[code\]SqlDataReader r = m1.selectAllMessages(userId); while (r.Read()) { //some data ButtonsContainer.InnerHtml="<input type='button' class='button' value='http://stackoverflow.com/questions/12720076/Replay' id='" + Convert.ToInt32(r["Message_ID"]) + "'/>"; //some data}\[/code\]thanks in advance :)
 
Back
Top