473,699 Members | 2,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TabStrip code in VB.NET

Hi,

I've tried to find a way to connect .aspx pages to a TabStrip webctrl but I've only found code with embedded <table><tr> stuff.

Can anyone help me finding some useful code?

TIA

/Kenneth
Nov 18 '05 #1
3 1732
take a look at the tabstrip control at www.asp.net, comes with the
sourcecode

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_auth or_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_autho r_plug>
----------------------------------------------

"Kenneth" <an*******@disc ussions.microso ft.com> wrote in message
news:4A******** *************** ***********@mic rosoft.com...
Hi,

I've tried to find a way to connect .aspx pages to a TabStrip webctrl but I've only found code with embedded <table><tr> stuff.
Can anyone help me finding some useful code?

TIA

/Kenneth

Nov 18 '05 #2
John,

This is exactly what I mean. in www.asp.net they're referring to the ie web ctrls and tabstrip can't handle urlnavigation to existing .aspx documents.

The IEWebCtrls are NOT the correct answer.

/Kenneth
Nov 18 '05 #3
well you can set IE controls... TabStrip exactly to do a postback... in the
postback you can check for the SelectedIndex and post it to whatever aspx
name you need to.
its not the most elegant way but it sure does the job.

private void tsNav_SelectedI ndexChange(obje ct sender, System.EventArg s e)
{
SetNav();
}
private void SetNav()
{
switch(tsNav.Se lectedIndex)
{
case 0:
myLoader.Attrib utes.Add("src", "CA_ShowEarlyBi rd.aspx");
break;
case 1:
myLoader.Attrib utes.Add("src", "CA_ShowCategor ies.aspx");
break;
case 2:
myLoader.Attrib utes.Add("src", "CA_ShowSubCate gories.aspx");
break;
case 3:
myLoader.Attrib utes.Add("src", "CA_ShowAvailab leColors.aspx") ;
break;
case 4:
myLoader.Attrib utes.Add("src", "CA_ShowAvailab leSizes.aspx");
break;
case 5:
myLoader.Attrib utes.Add("src", "CA_ShowProduct s.aspx");
break;
case 6:
Response.Redire ct("~/Signout.aspx");
break;
}
}

and it sure does work....

--
Regards,
HD
Once a Geek.... Always a Geek
"Kenneth" <an*******@disc ussions.microso ft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
John,

This is exactly what I mean. in www.asp.net they're referring to the ie
web ctrls and tabstrip can't handle urlnavigation to existing .aspx
documents.

The IEWebCtrls are NOT the correct answer.

/Kenneth

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1836
by: Eric | last post by:
I'm currently using the TabStrip control, but am having slighly difficulties. I've managed to retrieve the Items from the TabStrip using the Items property. But how can I enforce the changes that I've made to the Tabs within the TabItemCollection retrieved from TabStrip.Items?
0
1854
by: mehul | last post by:
CheckBox template always evaluate to False even if checked in a DataGrid hosted inside a TabStrip in ASP.NET Hi, I am trying to develop an ASP.NET application. I am using TabStrip (which is part of IE WebControls). Inside a tab I have a datagrid defined as follows:
0
1099
by: yufufi | last post by:
Hi, I want to use tabstrip on my webpage. I found the tabstrip page and installed webcontrols from msdn. But I couldn't make tabstrip to work at client side. It always does a postback. I copied the exact source code from the example at the msdn but still it does a postback. Confused ?? http://www.gotdotnet.com/team/webcontrols/tab/tab2.aspx this is the page
0
1606
by: Greg Taylor | last post by:
I'm using the IE webcontrols (obviously) trying to dynamically generate a tabstrip based of a DTS package. I can get the tabstrip to show if I assign the generation after the page completely loads and I trigger the execution to a button/click/etc... However if I try to link the execution to onLoad I get "dynaPage is undefined." DynaPage being the multipage I create dynamically. Not sure why, and what I need to change to fix this. Any...
4
4628
by: Asim Qazi | last post by:
Hi All i m using tab strip control plz help me setting its navigation my cod is private void TabStrip1_SelectedIndexChange(object sender, System.EventArgs e) { switch (TabStrip1.SelectedIndex)
0
1274
by: Dave | last post by:
Greetings, I am using a tabstrip in a user control (ascx) in a web application (aspx) that is used to navigate between the different aspx pages. Whenever I click on one of them, the response.redirect command works fine, but the page reloads with the first tab selected every time. If I try to change the selectedindex, it runs my SelectedIndexChanged routine so that doesn't work either. Is there a way I can change the selectedindex of...
2
1422
by: Bart Schelkens | last post by:
Hi, I've created a webusercontrol that contains a tabstrip (Microsoft.Web.UI.WebControls.TabStrip. I want to raise the event when the selected index of the tabstrip changes. I wrote the following code : Public Event TabIndexChanged(ByVal intSelectedIndex As Int16) Private Sub TabStrip1_onSelectedIndexChange(ByVal sender As System.Object,
9
2462
by: Mardy | last post by:
Hello I've been using the tabstrip and multipage controls and really like the way this combination allows users to switch between tabs without a postback. I'd like to get more detailed information about these controls but can only find basic information on the internet. In particular, I'd like to hide or disable tabs dynamically and I'm not sure how to do this. I'd appreciate any examples or insight.
10
3823
by: hwt | last post by:
Hi, I am pretty new to access and have created a booking database. I have a form, which has a tabstrip on that contains all the details about a person on one page of the tabstrip and all the bookings they have on another page. I have another form where the user selects the person whose details they would like to see, then the form with the tabstrip on is displayed, and linked to the previous form but the PersonID. However, if the person...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.