如何给top.location.href带参数?
如何给username带参数?string username = reader["username"].ToString();
this.Response.Write("<script>top.location.href='three.aspx?username='; </script>"); --------------------编程问答-------------------- 用username=<%=username%> --------------------编程问答--------------------
--------------------编程问答--------------------
this.Response.Write(string.Format("<script>top.location.href='three.aspx?username={0}'; </script>",'参数名称变量'));
--------------------编程问答--------------------
Response.Redirect("three.aspx?username="+reader["username"].ToString());
string strValue = "abcd";
Response.Write("<script>top.location.href='Test2.aspx?username="+ strValue +"'</script>");
补充:.NET技术 , ASP.NET