How can i use tabstrip without using multipage?

Discussion in 'ASP .Net Web Controls' started by David, Jun 9, 2004.

  1. David

    David Guest

    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!
     
    David, Jun 9, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephen Miller
    Replies:
    2
    Views:
    437
    Stephen Miller
    Feb 29, 2004
  2. Blair Taylor
    Replies:
    1
    Views:
    339
    Alvin Bruney
    Aug 7, 2003
  3. Russ
    Replies:
    8
    Views:
    209
  4. Replies:
    2
    Views:
    539
  5. Keith McDonald
    Replies:
    3
    Views:
    99
    Keith McDonald
    Jan 11, 2006
Loading...

Share This Page