ttkalec1 Posted February 15, 2008 Posted February 15, 2008 I'm pretty new to ASP.NET so maybe this question is dumb bit here it goes. I'm 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 Quote
Administrators PlausiblyDamp Posted February 15, 2008 Administrators Posted February 15, 2008 You could check the IsPostBack property within the code behind - if it returns true then do not rebind / reinitialise the controls on the master. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ttkalec1 Posted February 15, 2008 Author Posted February 15, 2008 You could check the IsPostBack property within the code behind - if it returns true then do not rebind / reinitialise the controls on the master. Tnx alot ;) Quote
Administrators PlausiblyDamp Posted February 16, 2008 Administrators Posted February 16, 2008 Are you wanting to effectively keep the contents of the drop down list constant between postbacks and maintain the selected item? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ttkalec1 Posted February 16, 2008 Author Posted February 16, 2008 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. Quote
ttkalec1 Posted February 17, 2008 Author Posted February 17, 2008 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? Quote
Administrators PlausiblyDamp Posted February 17, 2008 Administrators Posted February 17, 2008 Easiest way might be to look at the Ajax toolkit and simply put the formview in an update panel. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ttkalec1 Posted February 17, 2008 Author Posted February 17, 2008 Easiest way might be to look at the Ajax toolkit and simply put the formview in an update panel. O, thank you, I'll 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? Quote
Administrators PlausiblyDamp Posted February 19, 2008 Administrators Posted February 19, 2008 IIRC it should add another dll to your bin folder - simply make sure that you copy that file to the server as well. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
PROKA Posted February 19, 2008 Posted February 19, 2008 You need Ajax Extensions, not ajax Toolkit. So you know it's installed when you have the option to create a new "Ajax Enabled Web Site" within Visual Studio. Check out the videos on http://www.asp.net/ajax they're pretty good. Quote Development & Research Department @ Elven Soft
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.