views:

40

answers:

1

what i want to do is every time i click on a tab, the content area is replaced by pretty much a whole new page. i don't want a full page load so i want to do it in ajax, but i'm used to sending back small jason data via page methods. i'm not sure how i would construct a whole new page and return that via ajax and i would like to simply assign the whole content returned to a div and be done with it. what's the best way to do this with the least amount of overhead (i know there are some inefficient ways the scriptmanager does ajax)?

or is it better to load the tabbed content in an iframe?

fyi i'm already using jquery to call lightweight pagemethods on my asp net page and that works great.

A: 

If you are using Asp.net and also Asp.net Ajax Control Toolkit you can use from AjaxControlToolkit Tab control to implement your approach. (in any tab you have to put a new page or a Module (i recommand to use Module))

If not you can use a Asp.net MultiView Control and some Button which whenever User click on a button you change the MultiView ActiveViewIndex (via ajax AsynchPostback)

and finally you can use some div and control them via javascript

Nasser Hadjloo