Solved

Tabbed display in ASP.net

Posted on 2003-11-17
10
313 Views
Last Modified: 2008-02-01
Hi all

I require a a tabbed view on an ASP.net form. Am currently converting from Access and they have nice Tabbed form control.

So all I need is a way to allow the user to click a tab or button then display that tabs info. There will be data to put on tabs so I would like to just redraw page if possible rather than reload the data from server....if this is possible.

I guess what I am asking is can VB.Net/ ASP.Net do a an Access tabbed form control???

Please supply code sample as I need to recreate this.

cheers

George
0
Comment
Question by:Geo123
10 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9768546
the 'tabbed' display in ASP.NET does NOT behave the same way that you are ued to with Access.  Each 'tab', is in fact a COMPLETELY NEW web page, and requires a complete round trip to the Server and Back.  It just LOOKS like a Tabbed page.  The think to remember is that the INTERACTION model (how the use interacts with the application) is COMPLETELY DIFFERENT when dealing with ASP.NET, from what it is/was with a Windows application like Access.

What you get is a web-page (ASP.NET) that *looks like* a tabbed dialog, but each 'tab' is in fact a Hyperlink to the page that presents what would appear to be a new TAB PAGE - in fact, it *is* a completely ne and independent page.  The tabbed dialog per se DOES NOT exist.

AW
0
 
LVL 3

Author Comment

by:Geo123
ID: 9770357
ok can I use 1 page and when they hit a button it shows or hides a panel. Thus only using 1 trip to get data, and showing and hiding relevant panel/ pane.

Or what about a bookmark thing jumping down to tab to view??

cheers George
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9770566
I don't think so.  Look at the way the EE page works.  It 'behaves' like a Tabbed dialog, but when you choose from the topic bar ("home", "Career", "storage", etc) as if these were tabs on a Tabbed dialog, you are sent back to the server, to get the new page.  That is how ASP works.  And I doubt that you REALLY want to DOWNLOAD ALL of the data necessary for MULTIPLE tab pages, on the chance that the user might wat to navigate to one of the other pages.  It will be MUCH more efficient, in the long run, to simple navigate to the page the user want, load it (on the server) and send the requested page back to the browser, on demand.

AW
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 3

Author Comment

by:Geo123
ID: 9771597
no once my users are in a Company record they will be lokoing at only that companys data...about 20-30 fields worth... so you see after that initial company selection I dont need to go back to server...I willl have all the data user need for that company...this is more to do with page layout. Am moving current Access application to website.

Also going back to server would increase the bandwidth for application would it not??

cheers George
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9772803
sorry, but trying to move an Access app to the web, without clearly understanding the FUNDAMENTAL differences in the behavior of the User Interface in the two EXTREMELY different arenas is asking for trouble.  It is NOT simply a matter of translating an Access form to it equivalent in ASP.NET.  It does not work like that.

I have done both - Access application and then a web-enabled VERSION with the same basic FUNCTIONALITY, but NOT the IDENTICAL behavior.  You will need to adapt the UI to accomodate the web paradigm.  This will be especially so if you are also migrating to ASP.NET.  Is your application code written from a OO perspective.  Are you going to use Access as trhe back-end (a VERY BAD idea, but it is up to you).

There are MAJOR behavior differences - for instance, ComboBoxes MUST - repeat MUST- make a round-trip to the server, cannot be avoided - results in what is called a 'post-back' of the SAME page, back to the browser.  You will need to handle the POSTBACK in the Page_Load event handler in your VB.NET code for the page.  And this is just one of many such differences.  So be prepared for a rather steep learning curve, and be willing to change your approach to the solution, becuase change is REQUIRED to deal with the web-based forms as opposed to Windows based forms.

AW

0
 
LVL 3

Author Comment

by:Geo123
ID: 9796500
AW I already have done a SQL Server 7 and ASP front end last year. So am familair with some of concepts.

This conversion will use VB.Net and SQl Server backend.

So what about using Panels to show / hide controls and simulate a tabbed display?

I have done a create search fields at runtime prototype for another job and the Ispostback to check state to retain the dropdownlists user selection...so thats not a problem.

This application will have 150 users so bandwith is important.

cheers

George
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9796766
as far as I am aware, there is no Tab Page control for ASP.NET, either dfrom MS or from a third party, but I could be wrong on the latter.  I currently have no need for such a control, so I haven't looked.

Sorry I can't be of more help.

Good luck

AW

0
 
LVL 3

Author Comment

by:Geo123
ID: 9798285
MS has free addon componant for mutlitab and something else but I have yet to see any code that I can get to work
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10268098
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10321352
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question