473,569 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Jul 11 '07 #1
2 2366
On Jul 11, 6:26 am, Risso...@gmail. com wrote:
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 ICallbackEventH andler to implement call back
mechanism to your application...
please do check out the links bellow will definitely helpyou
http://msdn2.microsoft.com/en-us/lib...nthandler.aspx
http://staff.develop.com/ballen/blog...2-8095a848d821

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

Jul 11 '07 #2
On Jul 11, 2:26 am, Risso...@gmail. com wrote:
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

Jul 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5536
by: Paras | last post by:
Hi, I have 3 ContentPlaceHolders in the MasterPage. In the 2nd content I have placed a usercontrol which has anchor link. This loads another page (without changing loading the content of ContentPlaceHolder1). But currently this is getting posted back. I have tried in a separate application and tried with 2 ContentPlaceHolders (without user...
6
3997
by: HockeyFan | last post by:
I'd like to have an AJAX textbox that after the user fills in, will auto-fill another textbox on the page without having a postback occur. It doesn't have to do any filtering or any other thing like that. I'm fairly experienced with ASP.Net, but new to AJAX. Please help if you can. Thanx.
2
2198
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about the form load event. Why should it fire when I put a button in a update panel? Is this necessary and is only the other controls related to the...
0
6865
by: rsdev | last post by:
Hi, I am new to implementing Asynchronous javascript in asp.net (or any framework) and have come across a problem. In a user control I have an accordion with a nested updatepanel, the trigger is a link button in the header. I have read several posts that suggest I need to add the ControlID in the codebehind, so I have and I don't get any...
7
1716
by: MikeB | last post by:
Hello All, I am new to ajax and wanted to start by trying something simple. I have a web form with an updatepanel and then inside the update panel I have a listbox. Then outside of the updatepanel I have a button. In my buttons click event in the cs / code behind, I have a loop that just inserts items in the listbox. My question is, once I...
2
3636
by: nicknack | last post by:
Hello. A little tricky situation: I have a master page. Inside that master page I have A div (With overflow:scroll) that contain an ajax updatePanel. Inside that updatePanel I have a tree. The problem is That if I scroll down the tree and then select a node. The tree jump back to the top. Because I'm inside a masterpage I don't have the...
2
3758
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using an async page to kick off a couple of asynchronous web services using the PageAsyncTask class. I'm also testing a progress bar that uses an Ajax UpdatePanel and Timer control to postback every 5 or 10 seconds and increment the progress. However, Is there a way to merge these two concepts so that I can check the status of the...
1
8195
by: abellix | last post by:
An updatepanel contains a datagrid, this datagrid has columns generated by code-behind: some columns should have async postback, others should have sync postback. Here a sample to reproduce the behaviour: it's a webform with some VB code-behind, you shoud create a new AJAX-enabled application and past the following code. (DEFAULT.ASPX) ...
4
5348
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a text field which causes the Autocomplete extender to display 10 like items, after the users selects an item (which is a key in the database) I want...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.