Navigation Tab - Frames or AJAX?

I have what I present as a pretty standard web interface.

There are 4 different ListViews (grid controls) that are accessed by a series of tabs at the top.

I implemented this as follows:

alt text http://img402.imageshack.us/img402/1530/pagedu8.jpg

Tab 1 will load page 1 containing grid 1 into frame 2, tab 2 will load page 2 containing grid 2 into frame 2, etc.

However, this means that if you click on an element in the Grid and I load DetailsPage1.aspx into Frame 2, then Frame 1 and the tabs will still be visible and active.

I was told that I should have only one frame and dynamically load pages depending on the click on the tab using HttpRequest (or WebRequest in asp.net).

Is this the right approach? If you have any resources or tips at hand, this will be appreciated!

thank

+3
source share
9 answers

Frames are the absolute value of no-no. There is no benefit to frames that cannot be achieved using other methods.

Does this mean that you should use AJAX? Not necessary. AJAX is a great solution if you feel the need to provide a rich, seamless interface, but this is not strictly necessary.

, () , , ASP.NET( v2 ), -, , / .

, AJAX , a) ( - AJAX) b), 4 , , "" . , AJAX, , , ( ).

, - , , AJAX .

+4

: , Google: . javascript. . javascript, AJAX

+3

Ajax - . /. - . - :

domain.com/#tab1 domain.com/#tab2

..

jQuery, this ( , ). , :)

+2

. , .

+2

TabContainer 4 / ?

, , (Ajax postback), , , ( )

+1

jQuery jQuery UI-. , div.

+1

StingyJack, TabContainer, , ViewState .

, , GridView , , ( , , ). TabContainer ActiveTabChanged strategy.You disable ViewState , .

+1

DOES NOT use frames (or iframes, for that matter) unless you are required to ...

The only valid reasons I can think of using (i) frames is to really control the file upload, and I'm not sure if it really is there ...

-1
source

Source: https://habr.com/ru/post/1698965/


All Articles