Microsoft.Web.UI.WebControls.{MultiPage, TabStrip} 
Author Message
 Microsoft.Web.UI.WebControls.{MultiPage, TabStrip}

Hi folks,

I'm trying to programmatically modify Tabs in a TabStrip,
but something really wierd is happening.

public void Page_Load(Object sender, EventArgs e)
    if (!IsPostBack)
         TabStrip1.TargetId = "Wizard";


The TabStrip1.TargetId gets set properly, but the web page
comes up with an error on TabStrip1.getTab(), saying that
there are no definitions for getTab(). How come?

The rest of the page looks like this:

<form id="theForm" runat="server">
   <mywiz:TabStrip id="TabStrip1" runat="server">
   <mywiz:Tab Text="Page 1"></mywiz:Tab>
   <mywiz:Tab Text="Page 2"></mywiz:Tab>
   <mywiz:Tab Text="Page 3"></mywiz:Tab>

<mywiz:MultiPage id="Wizard" runat="server">
   <mywiz:PageView id="page0">
   <mywiz:PageView id="page1">
   <mywiz:PageView id="page2">

A quick reply would be greatly appreciated.

Thanks in advance,

*** Sent via Developersdex http://www.*-*-*.com/ ***
Don't just participate in USENET...get rewarded for it!

Mon, 29 Nov 2004 17:13:33 GMT  
 Microsoft.Web.UI.WebControls.{MultiPage, TabStrip}

OK - I discovered some clarifications:

The getTab() method can be called only on the client-side
(through JScript, etc) and not on the server-side, as I was
attempting to do.
On the other hand, the properties can be accessed from the
server-side also.

However, the problem still remains: How do I add Tabs and
TabSeparators in the TabStrip instance? MultiPage provides
a ControlCollection property called Controls, through which
the PageViews in the MultiPage can be accessed. However,
TabStrip does not provide any such property - is there some
walkaround possible - like directly appending some HTML to


*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!

Mon, 29 Nov 2004 18:53:38 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Q: SelectedIndexChanged event for System.Web.UI.WebControls.DropDownList

2. System.Web.UI.WebControls.FontInfo

3. Microsoft.Web.UI.WebControls

4. Adding Web Controls to the System.Web.UI.WebControls namespace

5. I can not find System.Web.UI.WebControls

6. Microsoft Internet Web Control TabStrip SelectIndexChange Event

7. Can System.Web.UI.WebControls.PreRender overridable?


9. bufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbufferoverrunbuf

10. Web Application UI Template

11. Layout of Custom System.Web.UI.UserControl Objects added to parent

12. Subclassing System.Web.UI.Page


Powered by phpBB® Forum Software