string Message = "Pabitra you as Microsoft Employee !";
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Pabitra you as Microsoft Employee !');", true);
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" + Message + "');", true);
ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('Pabitra you as Microsoft Employee !');", true);
ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + Message + "');", true);
Response.Write(@"<script language='javascript'>alert('Pabitra you as Microsoft Employee ! ')</script>");
Response.Write(@"<script language='javascript'>alert('"+Message+"')</script>");
Page.ClientScript.RegisterStartupScript(Page.GetType(), "MessageBox", "<script language='javascript'>alert('Pabitra you as Microsoft Employee !');</script>");
Page.ClientScript.RegisterStartupScript(Page.GetType(),"MessageBox","<script language='javascript'>alert('" + Message + "');</script>");
ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "ClientScript", "alert('Pabitra you as Microsoft Employee !')", true);
ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "ClientScript", "alert('" + Message + "')", true);
////////////////
ClientScript.RegisterClientScriptBlock(GetType(), "Email", "GetEmail();", true);
//In Html Page
<head>
<script type="text/javascript" language="javascript">
function GetEmail() {
alert('hi');
}
</script>
</head>
///////////////////////////
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Pabitra you as Microsoft Employee !');", true);
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" + Message + "');", true);
ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('Pabitra you as Microsoft Employee !');", true);
ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + Message + "');", true);
Response.Write(@"<script language='javascript'>alert('Pabitra you as Microsoft Employee ! ')</script>");
Response.Write(@"<script language='javascript'>alert('"+Message+"')</script>");
Page.ClientScript.RegisterStartupScript(Page.GetType(), "MessageBox", "<script language='javascript'>alert('Pabitra you as Microsoft Employee !');</script>");
Page.ClientScript.RegisterStartupScript(Page.GetType(),"MessageBox","<script language='javascript'>alert('" + Message + "');</script>");
ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "ClientScript", "alert('Pabitra you as Microsoft Employee !')", true);
ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "ClientScript", "alert('" + Message + "')", true);
////////////////
ClientScript.RegisterStartupScript(this.GetType(), "Email", "<script>GetEmail();</script>");
ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:alert('Please Enter Data')", true);
ClientScript.RegisterClientScriptBlock(GetType(), "Email", "GetEmail();", true);
//In Html Page
<head>
<script type="text/javascript" language="javascript">
function GetEmail() {
alert('hi');
}
</script>
</head>
///////////////////////////
No comments:
Post a Comment