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);
}
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);
}