关于点击按钮在事件里写跳转页面时URL后面带多个值问题和格式:哎^N次都没有成功 还有在另一个页面如何请求到每个的值.特别郁闷的是格式不会写.小弟就三十分了.一起来聊聊这个小东东吧! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 htpp://127.0.0.1/abc.aspx?param1=a¶m2=b¶m3=3用request.QueryString["param1"];request.QueryString["param2"]取值。 //传递参数Page.Response.Redirect("Index.aspx" + "?&SearchKey="+this.txtSearch.Text.Trim());//取得参数if(this.Request.Url.ToString().LastIndexOf("Search") > 0) { string strSearch = this.Request.QueryString["Search"].ToString(); //將需要查詢的關鍵字放在ViewState中. this.ViewState["Search"] = strSearch; } response.redirect("other.aspx?id="+strid+"name="+strname)接收时dim id , name as stringid=request.querystring("id")name=request.querystring("name") //传多个值代码为string strurl="";strurl="WebBrows.aspx?Code='dd'&Name="zxp'&Sex='Mrs'";//获取传过来的值string code=request["code"].tostring(); 原页面button中;string s1,s2;s1 = Request.Form["layout"].ToString();s2 = Server.UrlEncode(Request.Form["pro_cheap_dis"].ToString());Response.Redirect("search_cheap.aspx?lay="+s1+"&dis="+s2);目标页面中获得的值LblLay.Text= Request.QueryString["lay"];LblDis.Text= Request.QueryString["dis"]; 数据库问题 打开网页10分钟后弹出框并播放音乐 asp.net 2.0里怎样使用membership的Profile啊? .Net 2.0高手请进~!!~! session问题?想了很长时间... 我怎样把存到数据库中的图片读到label中,在线等 IE显示图片问题 asp 问题求助! 如何将<td width="13%"><%# Eval("dPubDate")%></td>此种情况下的日期格式显示为: 2008-04-20 如何使用水晶报表显示组件????包含数据库连接!在线等!定加分!!! 求论坛框架代码 郁闷~
用request.QueryString["param1"];
request.QueryString["param2"]取值。
Page.Response.Redirect("Index.aspx" + "?&SearchKey="+this.txtSearch.Text.Trim());//取得参数
if(this.Request.Url.ToString().LastIndexOf("Search") > 0)
{
string strSearch = this.Request.QueryString["Search"].ToString();
//將需要查詢的關鍵字放在ViewState中.
this.ViewState["Search"] = strSearch;
}
id=request.querystring("id")
name=request.querystring("name")
string strurl="";
strurl="WebBrows.aspx?Code='dd'&Name="zxp'&Sex='Mrs'";//获取传过来的值
string code=request["code"].tostring();
string s1,s2;
s1 = Request.Form["layout"].ToString();
s2 = Server.UrlEncode(Request.Form["pro_cheap_dis"].ToString());
Response.Redirect("search_cheap.aspx?lay="+s1+"&dis="+s2);目标页面中获得的值
LblLay.Text= Request.QueryString["lay"];
LblDis.Text= Request.QueryString["dis"];