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>
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>