This is a migrated thread and some comments may be shown as answers.

[Solved] radopen() function doen't work

1 Answer 196 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
priya nallaperumal
Top achievements
Rank 1
priya nallaperumal asked on 10 Feb 2010, 02:00 PM
radopen() function does't work..
undefined is null or not an object 
but when i call the same function in button's onclientclick it works..plz help me...
thx.

<form id="form1" runat="server">
    <div>
        <telerik:radscriptmanager id="RadScriptManager1" runat="server"></telerik:radscriptmanager>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" OnClientClick="check();" />
        <telerik:radwindowmanager id="RadWindowManager1" runat="server">
        <Windows>
      
        </Windows>
        </telerik:radwindowmanager>
    <telerik:RadScriptBlock ID="scrblk" runat="server">
    <script type="text/javascript">

function check()
{
alert("check");
radopen("www.google.com","win1");
}

</script>
    </telerik:RadScriptBlock>
        <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
        </asp:Timer>
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        </asp:UpdatePanel>
    </form>

 protected void Button1_Click(object sender, EventArgs e)
    {
         string s = "check();";
         RadScriptManager.RegisterStartupScript(this, this.GetType(), "s", s, true);
        
    }


1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Feb 2010, 09:31 AM
Hello Priya,

I believe that the following blog post will be of help:
http://blogs.telerik.com/supportdept/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx


Regards,
Georgi Tunev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
priya nallaperumal
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or