Hi,
I have a radAjaxManager in a Master page and in my content code-behind in a RadGrid update I am conneting to it via:
I have a radAjaxManager in a Master page and in my content code-behind in a RadGrid update I am conneting to it via:
Dim ajx As Telerik.Web.UI.RadAjaxManager = CType(Me.Master.FindControl("RadAjaxMaster"), Telerik.Web.UI.RadAjaxManager)
then I need to run a script on the content page if a certian condition is met in the code-behind using:
ajx.ResponseScripts.Clear()
ajx.ResponseScripts.Add(
"GridReturn();")
This works well the first time but every time after that I get an "Error on page" in the status bar of the browser.
Similar thing happens when I use:
ScriptManager.RegisterStartupScript(
Me, Me.GetType, "foo", "GridReturn();", True)
How can I get the script to run when required?
Regards