Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   How can i use tabstrip without using multipage? (http://www.velocityreviews.com/forums/t773484-how-can-i-use-tabstrip-without-using-multipage.html)

David 06-09-2004 12:18 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57