js 中应用: var SecondMark='<%=Request.QueryString["SecondMark"].ToString()%>';
html 中应用: src="aa.aspx?id=<%=Request["id"].ToString()%>"
后台: id= Request.QueryString["id"];
本文介绍了在ASP.NET中如何使用Request对象获取查询字符串参数,并展示了在js及HTML中的应用示例。通过Request对象可以方便地从客户端请求中读取数据。
js 中应用: var SecondMark='<%=Request.QueryString["SecondMark"].ToString()%>';
html 中应用: src="aa.aspx?id=<%=Request["id"].ToString()%>"
后台: id= Request.QueryString["id"];
2315

被折叠的 条评论
为什么被折叠?