Nested Master page

Posted by Nishithraj under ASP.NET AJAX on 1/22/2010 | Views : 2132 | Status : [Member] | Replies : 5
I have two buttons on a nested Masterpage. I need to change the contentpage data based upon the button clicked without reloading the entire page.
Content page has gridviews.

How can we do that. I tried from my side. But it's not working properly. Any idea

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan



Responses

Posted by: RtpHarry on: 1/23/2010 [Member] [MVP] Bronze

Up
0
Down
yeah these guys are correct. the simplest way would be to get an update panel in there to wrap round the content you want to change and then setup triggers so that the buttons outside of the update panel (in the master page) would function as activators for the update panel

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RtpHarry on: 1/24/2010 [Member] [MVP] Bronze

Up
0
Down
I forgot to mention before but there are many tutorials at the offical asp.net which cover microsoft ajax:

http://www.asp.net/learn/ajax/

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 1/25/2010 [Member] Bronze

Up
0
Down
Thanks freinds. I know AJAX is the only solution for this. And update panel can't be used here. Since it is a masterpage with two different content pages.

I have implemented several AJAX based applications also. I dont think this scnearion will cover there in the basic tutorials...



Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 1/22/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Use AJAX . If you want to change any html that is coming from the server without postback, you need to rely on AJAX.

Use ASP.NET AJAX or your CustomPage to render inside the container in the page.


www.abhisheksur.com

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 1/22/2010 [Member] Starter

Up
0
Down
Go through the tutorials available here

ASP.NET Ajax tutorials
http://www.dotnetfunda.com/tutorials/ajax/ and learn about the UpdatePanel (http://www.dotnetfunda.com/tutorials/ajax/updatepanel.aspx ) and you will know how to do that.

Thanks

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response