﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - Create a Webtab Programically</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Create-a-Webtab-Programically/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Create a Webtab Programically</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Create-a-Webtab-Programically/</link><pubDate>Mon, 31 Aug 2015 03:29:14 GMT</pubDate><dc:creator>JSteel</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;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.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;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 = "&amp;lt;div class='text'&amp;gt;This window is using InlineContent mode created from code behind.&amp;lt;/div&amp;gt;";
    myTabItem.PageTemplate = new GenericContainerTemplate(strContent);
    myTabItem.ToolTip = "Newly added TabItem";        
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Create a Webtab Programically</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Create-a-Webtab-Programically/</link><pubDate>Fri, 28 Aug 2015 19:53:40 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><description>&lt;p&gt;In my application, I want to create WebTabs dynamically.&lt;/p&gt;&lt;p&gt;The .aspx page looks like this:&lt;br&gt;&amp;lt;ISWebDesktop:WebTab ID="WebTab2" runat="server" Height="300px" Width="500px"&amp;gt;&lt;br&gt;&amp;lt;/ISWebDesktop:WebTab&amp;gt;&lt;/p&gt;&lt;p&gt;And in Page_Load(), I've got the following:&lt;br&gt;   WebTabItem myTabItem = new WebTabItem(); &lt;br&gt;   myTabItem.Name = "Jim";&lt;br&gt;   myTabItem.Text = "Jim";&lt;br&gt;   myTabItem.ContentMode = ContentMode.UseInlineContent;&lt;br&gt;&lt;br&gt;   String strContent = "&amp;lt;div class='text'&amp;gt;This window is using InlineContent mode created from code behind.&amp;lt;/div&amp;gt;";&lt;br&gt;   myTabItem.PageTemplate = new GenericContainerTemplate(strContent);&lt;br&gt;   myTabItem.ToolTip = "Newly added TabItem";&lt;br&gt;   WebTab2.TabPages.Add(myTabItem);&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;This will create the tab, but the PageTemplate data is not created.&amp;nbsp; The div, and the text "This window is using...." is not displayed.&lt;/p&gt;&lt;p&gt;Can you help, what am I doing wrong?&lt;br&gt;Thanks,&lt;br&gt;Jim&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>