Hey!!!
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.

Recommended Answers

All 2 Replies

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;
            TabContainer1.Controls.Add(thePanel);
PlaceHolder ph1 = new PlaceHolder();
thePanel.Controls.Add(ph1);
string fieldname = serviceHelper.Fields[fieldid].field.ToString();
                   Button b1 = new Button();
                       b1.ID = "b1";
b1.click += new System.EventHandler(this.GetRel_Click);
ph1.Controls.Add(b1);

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);
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.