Solved

Tabbed display in ASP.net

Posted on 2003-11-17
10
311 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 3

Author Comment

by:Geo123
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 3

Author Comment

by:Geo123
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now