How to ajax or async a call from a user control to the masterpage without an updatepanel?

R

Rissoman

I have two user controls on a master page. I can easily bubble up an
event on usercontrol 1 from a click event to the page.aspx, than then
calls a method on the masterpage, but this causes the screen to do a
postbacka nd full load. What I'm doing is i have a button on one user
control that when clicked it will dynamically load a usercontrol into
a placeholder on the masterpage. I know that if I were to put
everything into an update panel that it would work, but I do not want
to do this because there is other stuff in the page already and that
would cause to much over head. I want to know if there is a way to
ajax the button in the usercontrol to cause this other user control to
load dynamically into the masterpage. Any ideas would greatly be
appreciated.

Thanks,

Risso
 
M

Masudur

I have two user controls on a master page. I can easily bubble up an
event on usercontrol 1 from a click event to the page.aspx, than then
calls a method on the masterpage, but this causes the screen to do a
postbacka nd full load. What I'm doing is i have a button on one user
control that when clicked it will dynamically load a usercontrol into
a placeholder on the masterpage. I know that if I were to put
everything into an update panel that it would work, but I do not want
to do this because there is other stuff in the page already and that
would cause to much over head. I want to know if there is a way to
ajax the button in the usercontrol to cause this other user control to
load dynamically into the masterpage. Any ideas would greatly be
appreciated.

Thanks,

Risso

Hi...

Asp.net 2.0 have ICallbackEventHandler to implement call back
mechanism to your application...
please do check out the links bellow will definitely helpyou
http://msdn2.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx
http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=c35c43f6-5686-40ee-9752-8095a848d821

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
 
C

Cubaman

I have two user controls on a master page. I can easily bubble up an
event on usercontrol 1 from a click event to the page.aspx, than then
calls a method on the masterpage, but this causes the screen to do a
postbacka nd full load. What I'm doing is i have a button on one user
control that when clicked it will dynamically load a usercontrol into
a placeholder on the masterpage. I know that if I were to put
everything into an update panel that it would work, but I do not want
to do this because there is other stuff in the page already and that
would cause to much over head. I want to know if there is a way to
ajax the button in the usercontrol to cause this other user control to
load dynamically into the masterpage. Any ideas would greatly be
appreciated.

Thanks,

Risso

Try AjaxPro library, it's free and source code is available:
http://www.ajaxpro.info/

Best Regards,
Oscar Acosta
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top