<asp:Button ID="btn_create" runat="server"
Text="Create Weekly Report"
OnClick="btn_create_Click" />
This is a user button and code behind is
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (!(dr.HasRows))
{
Page.ClientScript.RegisterStartupScript(
this.GetType(),
"alert",
"openWinContentTemplate();",
true);
}
else
{
Response.Redirect("entry.aspx");
}
con.Close();
I want to call the javascript functionif the first condition is true.
but it is not working.
My javascript function is
function openWinContentTemplate() {
$find("RadWindow_ContentTemplate").show();
}
This opens a radwindow if the condition is satisfied.
Its not working could anyone plz help me out.