Author: aspbie | Posted on: 2/22/2010 10:15:36 PM | Views : 556

Is there something wrong with my code? I created the link button dynamically, but it wont go to that method when I click on the button.



LinkButton lbtnMail = new LinkButton(); lbtnMail.CommandArgument = "test"; lbtnMail.Command += new CommandEventHandler(lbtnMail_Command); //link button for mail protected void lbtnMail_Command(object sender, CommandEventArgs e) { Response.Write("testing" + e.CommandArgument.ToString()); }



...

Go to the complete details ...