I have a PlaceHolder object on a Form. I create several new:
System.Web.UI.WebControls.LinkButton linkButton = new LinkButton();
linkButton.ID = "LinkButton1" ;
linkButton.Text = sBuffer + "<br>";
this.PlaceHolder1.Controls.Add (linkButton);
in the code behind.
------------------------------------------------------------------------------------------------------------------
I use the same .ID for all link buttons since I want a single point of entry
back.
ASP.net then generates the following code
href="javascript:__doPostBack('LinkButton1','')">Technical<br></a><a
id="LinkButton1" href="javascript:__doPostBack('LinkButton1','')
href="javascript:__doPostBack('LinkButton1','')">Non Technical<br></a><a
id="LinkButton1" href="javascript:__doPostBack('LinkButton1','')
In the LinkButton event handler
private void LinkButton1_Click(object sender, System.EventArgs e)
{
//Is there a way for me to find out which link button called?
}
Comments welcomed. Thanks.
Naveen
<pie...@videotron.ca> wrote in message
news:R2k58.18168$4v.9...@weber.videotron.net...