Tabstrip and Multipage

Bull

New Member
I think there is a bug with these controls - I can't set tabstrip.Selectedindex or multipage.selectedindex. It always sets itself to 0. Does anyone else have this problem? No matter what you set the selected index value to, it always gets set to zero...so much for version 1.0 of the webcontrols...<BR><BR>Here's the code:<BR> Protected WithEvents tsHoriz As Microsoft.Web.UI.WebControls.TabStrip<BR> Protected WithEvents mpHoriz As Microsoft.Web.UI.WebControls.MultiPage<BR><BR> Private Sub tsHoriz_SelectedIndexChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsHoriz.SelectedIndexChange<BR> tshoriz.SelectedIndex=1 'instead of 0<BR> End Sub<BR><BR> Private Sub mpHoriz_SelectedIndexChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mpHoriz.SelectedIndexChange<BR> mphoriz.Selectedindex=1 'instead of zero<BR> End SubFor the "switch" to the other tab and it's contents the control renders with client side javascript. I don't think it's a server side event. <BR><BR>Here's my code that is working:<BR><BR><form id="form_gen" method="post" runat="server" autocomplete="on" action="uploader.aspx"><BR> <asp:panel id="Panel1" runat="server" Height="350" Width="100%"><BR> <P><BR> <asp:Label id="title" runat="server">Files for <%=request("cname")%></asp:Label><BR><BR> <tab:TabStrip id="TabStrip" style="FONT-WEIGHT: bold" runat="server" SepDefaultStyle="border-bottom:solid 1px #000000;" targetid="mp_Work" TabDefaultStyle="border:solid 1px black;background:#dddddd;padding-left:5px;padding-right:5px;" TabHoverStyle="color:red" TabSelectedStyle="border:solid 1px black;border-bottom:none;background:white;padding-left:5px;padding-right:5px;"><BR> <tab:Tab Text="General"></tab:Tab><BR> <tab:TabSeparator></tab:TabSeparator><BR> <tab:Tab Text="Projects"></tab:Tab><BR> <tab:TabSeparator></tab:TabSeparator><BR> <tab:Tab Text="Cases"></tab:Tab><BR> <tab:TabSeparator DefaultStyle="width:100%" /><BR> </tab:TabStrip><BR> <tab:MultiPage id="mp_work" style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: medium none; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #000000 1px solid" runat="server" Width="100%" Height="100%"><BR> <tab:PageView><BR> <table style="width:100%;font-size:x-small;background:#dddddd" bordercolor="#FFFFFF" border="1" cellspacing="0" cellpadding="1" height="240"><BR> <tr><BR> <td valign="top"><BR> <asp:TextBox id="gen_folder_textbox" runat="server"></asp:TextBox><BR> <asp:Button id="gen_button" runat="server" Text="Create"></asp:Button><BR> <input type="hidden" id="client" name="client" value=http://aspmessageboard.com/archive/index.php/"<%=request("client")%>"/><BR> <input type="hidden" id="clientdir" name="clientdir" value="<%="work"%>"/><BR> <asp:DataGrid id="dggen" runat="server" AutoGenerateColumns="False" Width="100%"><BR> <HeaderStyle BackColor="#ece9d8" BorderColor="#aca899"></HeaderStyle><BR> <ItemStyle BackColor="#ffffff" ForeColor="#000000"></ItemStyle><BR> <AlternatingItemStyle BackColor="#d8e4f8" ForeColor="#000000"></AlternatingItemStyle><BR> <Columns><BR> <asp:BoundColumn DataField="name" HeaderText="Folders:" HeaderStyle-BackColor="#ece9d8" HeaderStyle-BorderColor="#808080" HeaderStyle-BorderWidth="1pt"></asp:BoundColumn><BR> </Columns><BR> </asp:DataGrid></td><BR> </tr><BR> </table><BR> </tab:PageView><BR> <tab:PageView><BR> <table style="width:100%;font-size:x-small;background:#dddddd" bordercolor="#FFFFFF" border="1" cellspacing="0" cellpadding="1" height="240"><BR> <tr><BR> <td valign="top"><BR> <asp:TextBox id="projects_folder_textbox" runat="server"></asp:TextBox><BR> <asp:Button id="project_button" runat="server" Text="Create"></asp:Button><BR> <asp:DataGrid id="dgproj" runat="server" AutoGenerateColumns="False" Width="100%"><BR> <HeaderStyle BackColor="#ece9d8" BorderColor="#aca899"></HeaderStyle><BR> <ItemStyle BackColor="#ffffff" ForeColor="#000000"></ItemStyle><BR> <AlternatingItemStyle BackColor="#d8e4f8" ForeColor="#000000"></AlternatingItemStyle><BR> <Columns><BR> <asp:BoundColumn DataField="name" HeaderText="Folders:" HeaderStyle-BackColor="#ece9d8" HeaderStyle-BorderColor="#808080" HeaderStyle-BorderWidth="1pt"></asp:BoundColumn><BR> </Columns><BR> </asp:DataGrid></td><BR> </tr><BR> </table><BR> </tab:PageView><BR> <tab:PageView><BR> <table style="width:100%;font-size:x-small;background:#dddddd" bordercolor="#FFFFFF" border="1" cellspacing="0" cellpadding="1" height="240"><BR> <tr><BR> <td valign="top"><BR> <asp:TextBox id="cases_folder_textbox" runat="server"></asp:TextBox><BR> <asp:Button id="cases_button" runat="server" Text="Create"></asp:Button><BR> <asp:DataGrid id="dgcases" runat="server" AutoGenerateColumns="False" Width="100%"><BR> <HeaderStyle BackColor="#ece9d8" BorderColor="#aca899"></HeaderStyle><BR> <ItemStyle BackColor="#ffffff" ForeColor="#000000"></ItemStyle><BR> <AlternatingItemStyle BackColor="#d8e4f8" ForeColor="#000000"></AlternatingItemStyle><BR> <Columns><BR> <asp:BoundColumn DataField="name" HeaderText="Folders:" HeaderStyle-BackColor="#ece9d8" HeaderStyle-BorderColor="#808080" HeaderStyle-BorderWidth="1pt"></asp:BoundColumn><BR> </Columns><BR> </asp:DataGrid></td><BR> </tr><BR> </table><BR> </tab:PageView><BR> </tab:MultiPage></P><BR> </asp:panel>Thanks! I'll try it out - hey I noticed you are referencing an upload.aspx - I'm having problems getting the postedfile method working on this. It always is set to nothing. Any ideas? Do you have some upload codxe using the input type=file htmlinput control that works? I have some examples but they don't work as I indicated above. P.S. Does your Tabstrip return to the selected page/item when you go to another page and return?
 
Back
Top