How can i use tabstrip without using multipage?

D

David

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top