Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders 27 posts 47 karma points
    Sep 05, 2009 @ 17:46
    Anders
    0

    Request form in asp.net

    Hello

    How do i request a form in asp.net?

    <script runat="server">
        void search_sub(Object sender, EventArgs e){
            Server.Transfer("/soeg.aspx?search=") & Request.Form["search"];
        }
    </script>

    But it dosent work. I have tried with "," AND "+" instand of "&"

  • Masood Afzal 176 posts 522 karma points
    Sep 05, 2009 @ 17:49
    Masood Afzal
    0
    Server.Transfer( "/soeg.aspx?search=" + Request.Form["search"] ); 
  • Tom Maton 387 posts 660 karma points
    Sep 05, 2009 @ 17:50
    Tom Maton
    0

    Hiya,

    The Request.Form["search"] seems to be out of the Sever.Teransfer brackets.

    Try this

    Server.Transfer(String.Format("/soeg.aspx?search={0}", Request.Form["search"]));

    Tom

Please Sign in or register to post replies

Write your reply to:

Draft