string successScript = "alertSuccess";
if (!this.Page.ClientScript.IsStartupScriptRegistered(this.GetType(), successScript))
{
this.Page.ClientScript.RegisterStartupScript(this.GetType(), successScript, "alert('Your search suggestion a best bet request was successfully created.');", true);
}
转载于:https://www.cnblogs.com/upzone/archive/2010/05/18/1737987.html