ASP.NET (高级) 笔记

ASP.NET 笔记

基础

跳转页面及弹窗

跳转页面

Response.Redirect("UserInfo.aspx");

弹窗

 Response.Write("<script> alert('内容不允许为空')</script>");

弹窗并跳转页面

Response.Write("<script language='javascript'>alert('弹出显示的信息!'); location=' 跳转的页面地址';</script>");

页面刷新

 Response.Redirect(Request.Url.ToString());

RedirectURL传值、接值

跳转页面并传值

Response.Redirect("UserInfo.aspx?uid=1&pwd=2");

窗体加载接受

 if (Request.QueryString["id"] != null&&Reque

版权声明:本文为qq_43641098原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。