![]() |
How can i use tabstrip without using multipage?
Hi folks,
I want to use tabstrip webcontrol without using the multipage web control. The solution in microsoft's site is not working. It seems that the handle event is never executed. here is my application... <%@ Page Language="C#" Debug="true"%> <%@ Import Namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="tabs" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <html> <head> <title>TabStrip without MultiPage</title> </head> <script language="C#" runat=server> void Redirect_Click(Object sender, EventArgs E) { switch (tabs.SelectedIndex) { case 0: Response.Redirect ("at_entr.aspx"); break; case 1: Response.Redirect ("at_quest.aspx"); break; case 2: Response.Redirect ("at_prob.aspx"); break; } } </script> <body style="font-family: verdana; font-size: x-small;"> <form runat="server"> <input type="hidden" id="objId" value="0" runat="server"/> <tabs:TabStrip id="tabs" runat="server" Style="font-weight:bold" TabDefaultStyle="border:solid 1px #003366;background:white;padding-left:1px;padding-right:1px;" TabHoverStyle="color:red" TabSelectedStyle="border:solid 1px;border-bottom:none;background:#003366;padding-left:1px;padding-right:1px;color:white" SepDefaultStyle="border-bottom:solid 1px #003366;" OnSelectedIndexChanged="Redirect_Click" AutoPostBack="true"> <tabs:Tab Text="Entrs" /> <tabs:TabSeparator /> <tabs:Tab Text="Quests" /> <tabs:TabSeparator /> <tabs:Tab Text="Probs" /> <tabs:TabSeparator DefaultStyle="width:100%" /> </tabs:TabStrip> </form> </body> </html> Thanks for your help! |
| All times are GMT. The time now is 07:16 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.