如何在asp.net中给出一个消息警告框? [英] how to give a message alert box in asp.net ?
本文介绍了如何在asp.net中给出一个消息警告框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经查过
i have been checked
ScriptManager.RegisterClientScriptBlock(Me, GetType(Page), UniqueID, "javascript:alert('You have registered Successfully!');", True)
Response.Write("<script>alert('registrationsuccessful')</script>")
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "script", "alert('Message')", True)
i想要给一个消息注册后的ge框
plz help
i want to give a message box after register
plz help
推荐答案
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "script", "success('Message')", True)
function success(Message)
{
alert(Message);
window.location = 'newpage.aspx';
}
ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('This is an alert');", true);
使用类似的东西:
系统。 Web.HttpContext.Current.Response.Write(< SCRIPT LANGUAGE =JavaScript> alert(Hello this is a alert)< / SCRIPT>)
-SG
use something like this:
System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=""JavaScript"">alert("Hello this is an Alert")</SCRIPT>")
-SG
这篇关于如何在asp.net中给出一个消息警告框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文