Hi,
- I have a main aspx page containing an ascx user control I've created.
- The user control contains a RadAjaxManager and a RadWindowManager.
- The user control has an imagebutton on it that opens a modal RadWindow.
- In the javascript function assigned to the on close of the RadWindow, I call __dopostback.
- The dopostback() refreshes the entire main aspx page.
PROBLEM:
So, all of the above works, except the entire main aspx page refreshes (full postback is done). I only want to refresh the user control (partial postback), using ajax.
So perhaps this is just more of a AjaxManager question... but I must not be "ajaxifying" the correct updated / target controls.
The crappy thing is that I had the partial postback working, but was then running into many other issues with the RadWindow. In the past I was also trying to do a client side .ajaxRequest from within the function that runs on close of the RadWindow, but was having problems with that as well.
In case you want to know, I am specifying the name of the user control as my eventtarget, in the dopostback, like: ctl00$ContentPlaceHolder$ctl00$ContentPlaceHolder$ucUCCIndexingFilingControlsParent$ucFilingDetails
Perhaps you can just guide me as to how you would:
- Open a RadWindow from within a user control.
- When it is closed, have it post back to the server, but be ajaxified so that only part of the page is posted / refreshed.
Q. Should I just move all of the javascript to the user control, instead of having it in the main aspx page?
Thanks,
Brent
- I have a main aspx page containing an ascx user control I've created.
- The user control contains a RadAjaxManager and a RadWindowManager.
- The user control has an imagebutton on it that opens a modal RadWindow.
- In the javascript function assigned to the on close of the RadWindow, I call __dopostback.
- The dopostback() refreshes the entire main aspx page.
PROBLEM:
So, all of the above works, except the entire main aspx page refreshes (full postback is done). I only want to refresh the user control (partial postback), using ajax.
So perhaps this is just more of a AjaxManager question... but I must not be "ajaxifying" the correct updated / target controls.
The crappy thing is that I had the partial postback working, but was then running into many other issues with the RadWindow. In the past I was also trying to do a client side .ajaxRequest from within the function that runs on close of the RadWindow, but was having problems with that as well.
In case you want to know, I am specifying the name of the user control as my eventtarget, in the dopostback, like: ctl00$ContentPlaceHolder$ctl00$ContentPlaceHolder$ucUCCIndexingFilingControlsParent$ucFilingDetails
Perhaps you can just guide me as to how you would:
- Open a RadWindow from within a user control.
- When it is closed, have it post back to the server, but be ajaxified so that only part of the page is posted / refreshed.
Q. Should I just move all of the javascript to the user control, instead of having it in the main aspx page?
Thanks,
Brent