Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Webcontrols Tabstrip Help

Status
Not open for further replies.

mj616

MIS
Jun 23, 2003
73
US
Hello,
I have asked help on Forums including this one and cant seem to get any help with this. My problem is this I have a tabStrip that I want to use but everytime I select a tab it doesn't fire the SelectedIndexChange Event. Here is my .aspx code for the tabstrip
Code:
<%@ Control CodeBehind="_Header.ascx.cs" Language="c#" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Commerce.C_Header" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>

Code in my codebehind (ascs.cs)file
Code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Microsoft.Web.UI.WebControls;


namespace ASPNET.StarterKit.Commerce {

    public abstract class C_Header : System.Web.UI.UserControl {
		protected Microsoft.Web.UI.WebControls.TabStrip TabStrip1;
		protected System.Web.UI.HtmlControls.HtmlInputImage image1;
    
        public C_Header() {
            this.Init += new System.EventHandler(Page_Init);
        }

        private void Page_Init(object sender, EventArgs e) {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
        }

		#region Web Form Designer generated code
        ///		Required method for Designer support - do not modify
        ///		the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent() {
			this.image1.ServerClick += new System.Web.UI.ImageClickEventHandler(this.image1_ServerClick);
			this.TabStrip1.SelectedIndexChange += new System.EventHandler(this.TabStrip1_SelectedIndexChange);
			this.Load += new System.EventHandler(this.Page_Load);

		}



private void TabStrip1_SelectedIndexChange(object sender, System.EventArgs e)
		{if (TabStrip1.SelectedIndex == 1)
			{
			Response.Redirect "orderlist.aspx");
			}
		}

If anyone has any idea please Help.

Thanks
MJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top