[英]Dynamically add tabpanel to tabcontrol
I wanted to dynamically add tab panel to tabcontainer 我想将标签面板动态添加到tabcontainer
I have written the code. 我已经写了代码。
I has no errors, but still its not showing me tabs. 我没有错误,但是仍然没有显示我的标签。
My code: 我的代码:
ds = gc.GetDataToListBinder("select distinct(tabname) from Parameteronline where isactive='Y'")
For i = 0 To ds.Tables(0).Rows.Count - 1
Dim tpParameter As AjaxControlToolkit.TabPanel = New AjaxControlToolkit.TabPanel()
tpParameter.ID = "Panel_" & ds.Tables(0).Rows(i)(0).ToString()
tpParameter.HeaderText = ds.Tables(0).Rows(i)(0).ToString()
Dim tc As AjaxControlToolkit.TabContainer = New AjaxControlToolkit.TabContainer()
tc.Tabs.Add(tpParameter)
Next
ds is dataset here. ds是此处的数据集。 I am getting tab panel's header text from this dataset.
我正在从该数据集中获取选项卡面板的标题文本。
Code has no errors. 代码没有错误。 But still its not showing me result (tabcontainer)
但是它仍然没有显示我的结果(tabcontainer)
Please help me. 请帮我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.