如何显示在C#asp.net形式/显示消息框?
问题描述:
我想添加/显示在C#asp.net一个OK按钮一些消息,而无需使用Windows.Forms的名字空间。
I want to add/show some message with a OK button in c# asp.net without using the windows.forms name space.
答
使用:
string display = "Pop-up!";
ClientScript.RegisterStartupScript(this.GetType(), "yourMessage", "alert('" + display + "');", true);
how使用C#显示警告框插入成功后
Buttons,信息框,确认框在ASP.NET 3.5