Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 5th, 2003, 02:32 AM
Registered User
 
Join Date: Jun 2003
Location: bournemouth, dorset, United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tabbing in Datagrids

Hello my name stephen McNeill a programmer for Flight-Refuelling in
Wimborne
(Dorset). I was wondering is it possible to tab between mulitple datagrids.
With each datagrid displaying different information depending on the tab
page name. My email is stephen.mcneil@flight-refuelling.com
  #2 (permalink)  
Old June 5th, 2003, 10:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sydney, NSW, Australia.
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not exactly sure what you're trying to accomplish. However, in general, it is helpful to remember that ASP.Net pages output plain old HTML and javascript ('cause that's all a browser understands). If you are building some kind of HTML interface, which has "tabs", then you just need to pass some kind of information to the server about which tab the user has selected (eg using a HTML link control), and then build your page appropriately.
  #3 (permalink)  
Old June 6th, 2003, 02:11 AM
Registered User
 
Join Date: Jun 2003
Location: bournemouth, dorset, United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What I'm trying to do is to make it look like multiple datagrids are super imposed over each other. Each datagrid has a tab or link at the top showing a variable (most likely a name), which can bring (when selected) a particular datagrid (data) to the top of the pile of datagrids. This idea is sometimes called folders, tabbing or property pages. I just want to know if it is possible to do such a thing.
  #4 (permalink)  
Old June 6th, 2003, 02:04 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Stephen,

If I understand the situation correctly, yes, this can be done in ASP.NET.

The easiest way to set this up is to create a HTML table with the tabs and a few panels that contain the datagrids.

Each cell in the tab table contains a single tab with a hyperlink control. As soon as the hyperlink is clicked, a server side event is triggered. Inside the event, you can find out which tab was clicked and then hide all panels containing the grids and only show the right panel and datagrid for the current tab. You can then set the "selected" style for the current tab to make it appear selected.

The IBuySpy example (available from http://www.asp.net/Default.aspx?tabindex=5&tabid=42) shows how you can do this.

In fact, the whole ASP.NET site is based on this principle.

HtH,

Imar
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrids dhoward VB.NET 2002/2003 Basics 8 May 24th, 2007 09:07 AM
Datagrids dhoward VB.NET 2002/2003 Basics 1 January 2nd, 2007 01:06 AM
Datagrids Louisa VB.NET 2002/2003 Basics 2 September 25th, 2004 09:55 AM
Tabbing in Excel Mac 2004 Hugh Excel VBA 0 July 17th, 2004 01:13 PM
DataGrids and DataKeyField booksnore2 Classic ASP Basics 2 July 5th, 2004 08:38 AM



All times are GMT -4. The time now is 10:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.