Response.Write ("<script language=javascript>alert('大家好!')</script>");
解决方案 »
- 求助! js取值问题
- 设计时的特殊字体如何导入到服务器
- 急救!!在Winform中datagridView中的假数据怎么导出到Excel中
- 那位可以发个IBM.Data.Informix.dll 给我啊?
- DataGrid控件的编辑格式
- 急!!求一个在WEB中应用的表格控件.用过的请进来指教一二.
- 请教一个关于取得焦点问题!
- 小问题,大分数(100分,解决马上结!)
- 请教各位,麻烦进来看看 谢谢(Session_end||上传文件)
- VS2005中ASP.NET的gridview的自动分页出现错误
- 兄弟们,关于虚拟目录里面不能写文件的操作??帮个忙指点一下,在线等待!谢谢了
- c#中,有没有“浏览控件”???
<script language=javascript>alert('aaa')</script>
/// 弹出对话框到客户端
/// </summary>
/// <param name="strMessage">对话框的信息</param>
/// <DateTime>2003-4-21</DateTime>
public static void AlertClient(string strMessage)
{
System.Web.HttpContext.Current.Response.Write("<script language='jscript'>alert('" + strMessage.Trim().Replace("'","''")+ "');</script>");
}
'===========================================================
Friend Function AlertClient(byval strMessage as string)
System.Web.HttpContext.Current.Response.Write("<script language='jscript'>alert('" & strMessage & "');</script>");
End Function