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!

Creating multi-tab form 2

Status
Not open for further replies.

Terpsfan

Programmer
Dec 8, 2000
954
US
Can someone give me a suggestion on how to create a multi-tab form that would be an interface for a database? The idea is that each tab would represent data from different tables that would be updated as the user enters data. Is there a specific tab control for web forms? I don't seem to see one. Does such a tab control exist? Or would it be better to use frames? Anything that could point me in the right direction would be appreciated...
 
Thanks for your feedback. I had read in some other posts that this control was available, but not supported. I'm somewhat wary of using something that isn't supported. Is there another method I can use, such as create a series of images that would be the tabs hooked with frames?
 
OK...You just made me give up the top secret... :).
I hope you'll like this one:

It's a pure DHTML though. I used in a couple of apps, works just fine. Just modify it a little. BTW, I'm using those not supported Web Controls in the current app and it works like a charm in Netscape 7.0 & IE.
 
If you want to be able to access the panels from the code behind, then you can do your own tab control with the button and panel controls from vs.net.

I've used them many times, and its only ever a matter of hiding/showing the panels depending on what the user clicks.

hth

D'Arcy
 
Thanks for your replies, they have helped to point me in the right direction. Frost, so you are saying I would create a Panel, which would be the container for the text and label controls...then tie that to a specific image button on the web form and just hide or show the corresponding panel according to what image button was pressed?

LV, thanks for your code example. The tabs looked a bit primitive but I think you were just trying to show an example of how this works. How would I get access to more aesthetic-looking tabs that you will see on the web pages such as this? Are these tabs essentially just images that I would have to download from a third-party site?
 
You can probably become creative and plase tab-like images into those div tags, I haven't tried. There is a sample out there though (I tink, it was aspnetpro.com site), showing hoe to ctreate a tabbed ASP.Net grid custom control. You migh want to check that out.
 
Omega: yeah, thats how I've done it in the past. It works really well, although larger amounts of panels can get a bit tricky.

D
 
i'm interested in creating my tab control with the button and panel controls from vs.net as you suggested.

however when i do the hiding/showing based on the button clicked, it only works the 1st time, therafter the next panel does not become visible.

Button1_clicked
Panel1.visible=true
Panel2.visible=false

Button2_clicked
Panel1.visble=false
Panel2.visble=true

do I need to do something else? please help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top