Response.Redirect如何传递2个参数到另外一个页面
在A页面 Response.Redirect("~/A.aspx?id&ds=" + ddl1.SelectedValue + ddl2.SelectedValue);
B页面string sqlstr2 = "SELECT * from t_city ";
sqlstr2 += "where id&ds" + Request.QueryString["id&ds"]; 请问如何才能在A页面把2个dropdownlist的值ddl1,ddl2传到B页面作为查询条件。我的格式错误,麻烦各位帮我改一下,谢谢
------解决方案--------------------
C# code
Response.Redirect("~/A.aspx?id=" + ddl1.SelectedValue +"&ds="+ ddl2.SelectedValue);
B页面string sqlstr2 = "SELECT * from t_city ";
sqlstr2 += "where id=" + Request.QueryString["id"].ToString()+" and ds = "+Request.QueryString["ds"].ToString();