try
holidaypage.aspx:<script  runat="server"  language="vb">  
   Sub  Page_Load()  
    if IsPostBack then
       Response.Write  ("<b>Name:</b>  "  +  FullName.Text  +  "<br  />")  
       Response.Write  ("<b>Address:</b>  "  +  Address.Text  +  "<br  />")  
       Response.Write  ("<b>Sex:</b>  "  +  Sex.SelectedItem.Value  +  "<br  />")  
       Response.Write  ("<b>Destination:</b>  "  +  Destination.SelectedItem.Value  +  "<br  />") 
    end if 
   End  Sub  
</script>  <html>  
<head>  
   <title>Holiday  page</title>  
</head>  
<body>  
<form  runat="server">  
 
       <h1>Feiertag  Holidays</h1>  
       Please  enter  your  details  here.  
       <br  /><br  />  
       Name:<asp:textbox  id="FullName"  runat="server"  />  
       <br  /><br  />  
       Address:<asp:textbox  id="Address"  rows="5"  textmode="multiline"  runat="server"  />  
       <br  /><br  />  
       Sex  -    
       <asp:radiobuttonlist  id="sex"  runat="server">  
           <asp:listitem  value="Male"  />  
           <asp:listitem  value="Female"  />  
       </asp:radiobuttonlist>  
       Please  select  the  destination  you  would  like  details  on:  
       <asp:dropdownlist  id="Destination"  runat="server">  
           <asp:listitem  value="Madrid"  />  
           <asp:listitem  value="Barcelona"/>  
           <asp:listitem  value="Lisbon"/>  
           <asp:listitem  value="Oslo"/>  
           <asp:listitem  value="Prague"/>  
       </asp:dropdownlist>  
       <br  /><br  />  
           <input  type="Submit">  
       <input  type="Reset">  
 
   </form>      
</body>  
</html>  
 

解决方案 »

  1.   

    但我是想让反馈的结果在holidayresponse中显示,如上面问题的第二段代码。
      

  2.   

    see how it is done:
    Passing Values between ASP.NET Web Forms
    http://www.dotnetbips.com/displayarticle.aspx?id=79or try
    holidaypage.aspx:
    <script  runat="server"  language="vb">  
       Sub  Page_Load()  
        if IsPostBack then
      Server.Transfer("holidayresponse.aspx",true)     
        end if 
       End  Sub  
    </script>  <html>  
    <head>  
       <title>Holiday  page</title>  
    </head>  
    <body>  
    <form  runat="server">  
     
           <h1>Feiertag  Holidays</h1>  
           Please  enter  your  details  here.  
           <br  /><br  />  
           Name:<asp:textbox  id="FullName"  runat="server"  />  
           <br  /><br  />  
           Address:<asp:textbox  id="Address"  rows="5"  textmode="multiline"  runat="server"  />  
           <br  /><br  />  
           Sex  -    
           <asp:radiobuttonlist  id="sex"  runat="server">  
               <asp:listitem  value="Male"  />  
               <asp:listitem  value="Female"  />  
           </asp:radiobuttonlist>  
           Please  select  the  destination  you  would  like  details  on:  
           <asp:dropdownlist  id="Destination"  runat="server">  
               <asp:listitem  value="Madrid"  />  
               <asp:listitem  value="Barcelona"/>  
               <asp:listitem  value="Lisbon"/>  
               <asp:listitem  value="Oslo"/>  
               <asp:listitem  value="Prague"/>  
           </asp:dropdownlist>  
           <br  /><br  />  
               <input  type="Submit">  
           <input  type="Reset">  
     
       </form>      
    </body>  
    </html>  
     
    holidayresponse.aspx:
    <%@ Page EnableViewStateMac="false" %>
    <script  runat="server"  language="vb">  
       Sub  Page_Load()  
           Response.Write  ("<b>Name:</b>  "  +  Request.Form("FullName")  +  "<br  />")  
           Response.Write  ("<b>Address:</b>  "  +  Request.Form("Address")  +  "<br  />")  
           Response.Write  ("<b>Sex:</b>  "  +  Request.Form("Sex")  +  "<br  />")  
           Response.Write  ("<b>Destination:</b>  "  +  Request.Form("Destination")  +  "<br  />")  
       End  Sub  
    </script>  
    <html>  
    <head>    
       <title>Holiday  page</title>  
    </head>  
    <body>  
       <br  /><br  />  
       These  details  have  been  entered  into  our  database,  you  should  receive  a  confirmation  email  from  us  shortly.  
    <br  /><br  />  
    </body>  
    </html>  
      

  3.   

    http://www.dotnetbips.com/displayarticle.aspx?id=79上是用C#写的吧,有一句这样
    Response.Redirect(url);在VB中该如何表示呢?
      

  4.   

    菜鸟请教下面代码错在哪?
    <script runat="server" language="vb">
      Sub Button1_Click(sender as object, e as EventArgs)
        Dim url as string
        url="anotherwebform.aspx?name=" + TextBox1.Text
        Response.Redirect(url);
      End Sub
    </script><html>
    <head>
      <title>Test</title>
    </head>
    <body>
    <form runat="server">
      This is a test page.
      Name:<asp:textbox id="textbox1" runat="server" width=100/>
      <input type="button" id="button1" value="Submit">
    </form>
    </body>
    </html>