Author: fuzionist | Posted on: 9/9/2009 11:46:08 AM | Views : 1187

Hi all, I have encounterd some problems with my programatically created link button as it does not trigger the server side on click event even though i have programatically added the click event hander for it.Basically my link button is created added to a panel which will onclick should trigger the modal popup extender and thus displaying an image in a panel.



May I know if there is anyway to solve this problem?


Thanks alot.

Below are the sample code which i did.


lblSeePhoto.Click += new EventHandler(lb_Click);


protected void lb_Click(object sender, EventArgs e)
    {
        //((LinkButton)sender).Text = "fdsfs";
        msgBox1.alert("hello");
    }
...

Go to the complete details ...