我在一页面中:
 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Response.Redirect("WebForm11.aspx?aaa=123")
  End Sub
在别一页面中:
   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '在此处放置初始化页的用户代码
       
                TextBox1.Text=Request.QueryString["aaa"]
   End Sub可朄是TEXTBOX1中没东西呀,是值没传过来吗,请指导

解决方案 »

  1.   

    应该不会,是不是别的地方把Text覆盖掉了,调试看看
      

  2.   

    Request.QueryString["aaa"].ToString()     C#
      

  3.   

    应该不会出现你那样的情况! TextBox1.Text=Request.("aaa")     vborTextBox1.Text=Request.QueryString["aaa"].ToString()     C#
      

  4.   

    TextBox1.Text=Request("aaa")     vborTextBox1.Text=Request.QueryString["aaa"].ToString()     C#
      

  5.   

    我在VS。NET2003编译环境下做的测试,就是不行呀,不知原因
      

  6.   

    Request.QueryString["aaa"].ToString()     没理由不行的,检查别的地方吧
      

  7.   

    1、改装.net 1.1 框架
    2、通过编码传值,如vb下一段代码:
    传值:page1.aspx
    <%@ Import Namespace="system.web.HttpUtility"%>
    ......
    dim encodeSmall=HttpUtility.UrlEncode(myreaderBG.item("SmallClassName"))
    Response.Redirect("page2.aspx?aaa=<%encodeSmall%>")接受值:page2.aspxdim strBGN=Request("aaa")
    Dim BGName As String = HttpUtility.UrlDecode(strBGN)