Hi,
I am replacing an old control suite with Telerik and the intention initially is to replace like for like with the functionality.
I have a RadGrid that is using a RadAjaxManager to control the ajax postback to display and hide hierarchy data.
In the DetailTable (inner part of hierarchy) I have a command that will postback to check what security the user has and if they have appropriate authorisation the page will fire Javascript to open a window, passing some query string variables set during the postback processing.
The problem I have is that with the AJAX enabled, when I click the command the loading panel fires and then a Javascript error appears, but no popup window. Below is a simplified attempt at registering javascript which does not work. This approach seemed to have been recommended elsewhere on the net.
Error message from IE:
Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Could anyone advise how I can fire Javascript during an ajax enabled partial page postback?
Thanks for your help,
Matt
I am replacing an old control suite with Telerik and the intention initially is to replace like for like with the functionality.
I have a RadGrid that is using a RadAjaxManager to control the ajax postback to display and hide hierarchy data.
In the DetailTable (inner part of hierarchy) I have a command that will postback to check what security the user has and if they have appropriate authorisation the page will fire Javascript to open a window, passing some query string variables set during the postback processing.
The problem I have is that with the AJAX enabled, when I click the command the loading panel fires and then a Javascript error appears, but no popup window. Below is a simplified attempt at registering javascript which does not work. This approach seemed to have been recommended elsewhere on the net.
RadScriptManager.RegisterStartupScript(Page, GetType(),
"test"
,
"alert('test'
);"
,
true
);
Error message from IE:
Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Could anyone advise how I can fire Javascript during an ajax enabled partial page postback?
Thanks for your help,
Matt