Postback and master pages

ttkalec1

Member
Joined
Feb 26, 2005
Messages
19
Im pretty new to ASP.NET so maybe this question is dumb bit here it goes.
Im using an DropDownList control on my aspx file that is linked to an master page. My question is: Is it posible not to load master page elements every time I do a postback with my DDList control? So I want to reload only my aspx file that is within my master page, but no my masterpage as well
 
You could check the IsPostBack property within the code behind - if it returns true then do not rebind / reinitialise the controls on the master.
 
Are you wanting to effectively keep the contents of the drop down list constant between postbacks and maintain the selected item?

No, the situation is like this... I have an master page on which I have some toolbars and a banner. And I have a regular aspx page that is linked to the master page. On that page I have an sql data source and a formview... and when I go through my records via FormView, my master page also reloads, and my banner and sidebar reloads all over again, and I want to prevent that.
 
No, the situation is like this... I have an master page on which I have some toolbars and a banner. And I have a regular aspx page that is linked to the master page. On that page I have an sql data source and a formview... and when I go through my records via FormView, my master page also reloads, and my banner and sidebar reloads all over again, and I want to prevent that.


So no one can help me with this? Could you please tell me if what I wanna do is possible or I need to find another way around it?
 
Easiest way might be to look at the Ajax toolkit and simply put the formview in an update panel.

O, thank you, Ill take a look at it ;)
Just one quick question... I have installed AJAX toolkit to my computer, but do I have to install anything to my server machine that will run AJAX powered page?
 
You need Ajax Extensions, not ajax Toolkit. So you know its installed when you have the option to create a new "Ajax Enabled Web Site" within Visual Studio. Check out the videos on www.asp.net/ajax theyre pretty good.
 
Back
Top