Add Control to Tab programmatically

1 reply. Last post: September 10, 2012 4:43 AM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Eric HanigMember

Hi

 

ok this is quite complex what i want to do. 

1)  Add a new tab server side

2)  In that tab, set the content to be a custom grid i have

3) Call a method in that grid to bind it to a specific data set.

WebTabItem theTab = new WebTabItem();

theTab.Name = theService.ServiceKey;

theTab.Text = "test;
String strContent = "<ExtendASP:ServiceProperties ID=\"ctl" + theService.ServiceKey + "\"runat=\"server\" />";

theTab.PageTemplate =

new ISNet.WebUI.WebGrid.GenericContainerTemplate(strContent);

this.wtServices.TabPages.Add(theTab);

Call the new contents special call

 

The code above was an attempt but it is only part way.  My ServiceProperties has a call SetInfo that i need to trigger.

 

Any ideas?

Eric

 

All times are GMT -5. The time now is 3:40 AM.
Previous Next