iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
In my application, I want to create WebTabs dynamically.
The .aspx page looks like this:<ISWebDesktop:WebTab ID="WebTab2" runat="server" Height="300px" Width="500px"></ISWebDesktop:WebTab>
And in Page_Load(), I've got the following: WebTabItem myTabItem = new WebTabItem(); myTabItem.Name = "Jim"; myTabItem.Text = "Jim"; myTabItem.ContentMode = ContentMode.UseInlineContent; String strContent = "<div class='text'>This window is using InlineContent mode created from code behind.</div>"; myTabItem.PageTemplate = new GenericContainerTemplate(strContent); myTabItem.ToolTip = "Newly added TabItem"; WebTab2.TabPages.Add(myTabItem);
This will create the tab, but the PageTemplate data is not created. The div, and the text "This window is using...." is not displayed.
Can you help, what am I doing wrong?Thanks,Jim
I found that if WebTabItem object is added into TabPages before assign its PageTemplate, then the div and the text "This window is using...." is displayed.
protected void Page_Load(object sender, EventArgs e) { WebTabItem myTabItem = new WebTabItem(); myTabItem.Name = "Jim"; myTabItem.Text = "Jim"; myTabItem.ContentMode = ContentMode.UseInlineContent; WebTab1.TabPages.Add(myTabItem); String strContent = "<div class='text'>This window is using InlineContent mode created from code behind.</div>"; myTabItem.PageTemplate = new GenericContainerTemplate(strContent); myTabItem.ToolTip = "Newly added TabItem"; }
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname