Navigate with Tabstrip

G

Guest

can someone help me? i copied this from msdn, and can't get it to work on
the Response.Redirect. I think it should be that, and I also tried
Page.Navigate("www.yahoo.com"), but that gave me an error so I thought I'd
try it this way.

<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls" %>
<HTML>
<script runat="server">

protected void Tabstrip1_OnSelectedIndexChange(object sender, EventArgs e)
{
switch (Tabstrip1.SelectedIndex)
{
case 0:
Response.Redirect("www.yahoo.com");
break;
case 1:
Response.Redirect("www.google.com");
break;
}
}
</script>
<body>
<form runat="server" ID="Form1">
<ie:TabStrip runat="server"
TabDefaultStyle="background-color:#000000;font-family:verdana;font-weight:bold;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center"
TabHoverStyle="background-color:#777777"
TabSelectedStyle="background-color:#ffffff;color:#000000"
ID="Tabstrip1" AutoPostback="true">
<ie:Tab Text="Yahoo" />
<ie:Tab Text="Google" />
<ie:Tab Text="Products" />
<ie:Tab Text="Support" />
<ie:Tab Text="Contact us" />
</ie:TabStrip>
</form>
</body>
</HTML>
 

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
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top