Showing posts with label updated. Show all posts
Showing posts with label updated. Show all posts

Monday, March 26, 2012

Tab control - where do you put update button?

Hi - with the tab panel control, do I need to have an 'update' button on each tab to save any details updated on that tab, or will one Update button, outside the TAB container, be able to 'see' all of the controls on each page? Or do you need to do a findcontrol to get to your controls on each of the tabs?

Thanks, Mark

Mtait,

You should be able to access the controls directly off the tabs. So an update button outside of the TabContainer should be just fine.

Regards.

Wednesday, March 21, 2012

tabcontainer by code

i have a ajax tabcontainer

i add tabpanel by code but ,

for example if i have 5 tabs and one is updated content i wanna blink or change the color of tabheader that has been update

Note: that 1 or more tabs can be updated so x tabs must change the color of header or blink

Regards

zulurl

protected void Page_Init(object sender, EventArgs e)
{

AjaxControlToolkit.TabPanel tab = new AjaxControlToolkit.TabPanel();
tab.HeaderText = "test_new_tab";

TabContainer1.Tabs.Add(tab);

tab.Controls.Add(LoadControl("WebUserControl.ascx"));

AjaxControlToolkit.TabPanel tab2 = new AjaxControlToolkit.TabPanel();
tab2.HeaderText = "test_new_tab2" + System.DateTime.Now;

TabContainer1.Tabs.Add(tab2);

tab.OnClientClick = "js";
tab.BackColor = System.Drawing.Color.Red;

{

}

}
with another way how do i refer document.getelementbyid(->the tab added...??
TabID.ClientID