JavaScript code is not working inside a RadAjaxPanel
I have used a telerik RadAjaxPanel. Insdie this panel I have a button. I want to open a new window using javascript code by clicking this button. My code is shown below:
string script = "window.open('http://example.org/NewPage.aspx', 'new_window');";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Open window", script, true);
NB:This code is written in .cs page and this are C# code.
If i use the button outside the RadAjaxPanel then it works nicely.
Thanks in advance
I have used a telerik RadAjaxPanel. Insdie this panel I have a button. I want to open a new window using javascript code by clicking this button. My code is shown below:
string script = "window.open('http://example.org/NewPage.aspx', 'new_window');";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Open window", script, true);
NB:This code is written in .cs page and this are C# code.
If i use the button outside the RadAjaxPanel then it works nicely.
Thanks in advance