private void Button2_Click(object sender, System.EventArgs e)
{
String scriptString = "<script language=javascript>";
scriptString += "alert(@#数据写入成功!@#)";
scriptString += "</script>";
if(!this.IsStartupScriptRegistered("Startup"))
this.RegisterStartupScript("Startup", scriptString);
}
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/