.aspx page
<script type="text/javascript">
function alertMe() {
alert('Hello');
}
</script>
aspx.cs Page
if (!ClientScript.IsStartupScriptRegistered("alert"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alertMe();", true);
}
<script type="text/javascript">
function alertMe() {
alert('Hello');
}
</script>
aspx.cs Page
if (!ClientScript.IsStartupScriptRegistered("alert"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alertMe();", true);
}
0 comments:
Post a Comment