Anyone have any idea that can we fire button click event if the button is added in tabpanel not in panel if have any example or any help would appriciated pls give as soon as possible.

8 Years
Discussion Span
Last Post by bhavu4u

You can find some useful detail on tabpanel at - http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx

thanks for response but i want Example of dynamically added button on dynamic tab panel and fire click event on buttons click ur url give static information regarding tab panel so pls any other useful information regarding dynamically added button on dynamic tab panel and fire click event on buttons click then pls suggest me. i just clearing my point once again that i have one dynamic added button on tab panel using place holder and i am not able to fire click event on buttons click so i want to know can we do that any example or article is useful regarding this then pls give.

AjaxControlToolkit.TabPanel thePanel = new AjaxControlToolkit.TabPanel();
            thePanel.ID = tabname;
            thePanel.HeaderText = tabname;
PlaceHolder ph1 = new PlaceHolder();
string fieldname = serviceHelper.Fields[fieldid].field.ToString();
                   Button b1 = new Button();
                       b1.ID = "b1";
b1.click += new System.EventHandler(this.GetRel_Click);

and this is my click event

protected void GetRel_Click(object sender, EventArgs e)
        string servicename = ((Button)sender).Id.ToString();
        Response.Redirect("Customer_List.aspx?Websevice=" + servicename, false);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.