Posting data and redirecting

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Posting data and redirecting

    I know this is most likely a very basic question, but I am unsure of the
    answer. I have two ASP.Net pages, collect.aspx and process.aspx. I want to
    pass the data collected in collect.aspx to process.aspx. I have done this
    using response.redirect and adding the form data to the end of the URL (i.e.
    process.aspx?FormField=FormData). This would work OK, but I do not want the
    user to know what data is being passed. I believe I need to use the POST
    method, but I do not know exactly how to go about it. To complicate things
    even more, I may need to redirect to different pages based on the input. I
    hope that this is understandable and I am sorry if this has been discussed
    previously.

    Thanks in advance,

    Matt Osborne



    Matt Osborne Guest

  2. Similar Questions and Discussions

    1. Form Data not posting...
      Hi, Here is the action script from movie. When I click submit the from data loads I can see it with trace. However when it gets posted to CFpage...
    2. Posting data mystery
      :confused; I've suddenly found that I am unable to post data from Flash forms on one machine. Simple as that. Other machines around it on the same...
    3. ASP.NET not posting form data
      Dear all, We are a library and are trying to get an ASP.NET form page working on our site. the buttons and fields appear, but we are still having...
    4. Posting data from MySQL?
      If you had gone to alt.php.sql first you could have found the answer without posting. There's a standard way of doing things over there which goes...
    5. posting data from a web form to other one.
      Hi, I have a frameset and two aspx page. How can post data from one web form to other one. Thanks
  3. #2

    Default Re: Posting data and redirecting

    I would like to avoid using the session object if it is possible. I want to
    be able to post data to the page so pages not written in ASP.Net can submit
    as well.

    TIA

    Matt Osborne

    "Boban Dragojlovic" <news@_N_O_S_P_AM_dragojlovic.org> wrote in message
    news:g_cVa.33$qA6.65574956@newssvr13.news.prodigy. com...
    >
    > Unless there is some reason that you can't do it, you would be better off
    > using the Session variable to store such information.
    >
    > Anything stored in the Session variable is preserved between multiple page
    > requests
    >
    > So, on page 1 (Collect), you put the stuff in
    > Session("some_var") = some_var
    > Session("another_var") = "bob"
    > ...
    >
    >
    > Then, in Process, you get them back
    > some_var = Session("some_var")
    > ...
    >
    >
    > "Matt Osborne" <private@stupidSpamer.net> wrote in message
    > news:HUcVa.1272$CS7.33@newssvr24.news.prodigy.com. ..
    > > I know this is most likely a very basic question, but I am unsure of the
    > > answer. I have two ASP.Net pages, collect.aspx and process.aspx. I
    want
    > to
    > > pass the data collected in collect.aspx to process.aspx. I have done
    this
    > > using response.redirect and adding the form data to the end of the URL
    > (i.e.
    > > process.aspx?FormField=FormData). This would work OK, but I do not want
    > the
    > > user to know what data is being passed. I believe I need to use the
    POST
    > > method, but I do not know exactly how to go about it. To complicate
    > things
    > > even more, I may need to redirect to different pages based on the input.
    > I
    > > hope that this is understandable and I am sorry if this has been
    discussed
    > > previously.
    > >
    > > Thanks in advance,
    > >
    > > Matt Osborne
    > >
    > >
    > >
    >
    >

    Matt Osborne Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139