Results 1 to 6 of 6

Thread: Request.form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Request.form

    I have a page which is redirected from an page which includes the label named lblTest. How can I reach this on the current page using request.form (like asp 3.0)? I don't want to use the response.querystring because I have a lot of parameters which should be passed

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    Server.Transfer I belive is correct. It's Server or Response. it moves all the gunk from one page into your next page and you mega gunk if you keep doing it. Look it up in MSDN/msdn.microsoft.com for complete info.
    Magiaus

    If I helped give me some points.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Well now I've used Server.Transfer("print.aspx", True)

    But at the page Print.aspx, how do I actually get the information from a textbox named textbox1 on the webform where Server.Transfer is sent from?

    I have tried

    Request.form("textbox1.text") but it doesn't work.

  4. #4
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    Request("TextBoxt1")

    and um I don't know that it works with server controls. It does work with html <input> tag controls though. Like I said check out MSDN I've never used it. I always had a lower version of asp until now.

    Here is an idea though. Throw your info into the session, Redirect, and when your done clear out the session by setting whatever Session["var"] = null/Nothing.
    Magiaus

    If I helped give me some points.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Uups, sorry I wrote

    Request.Form("textbox1.text")

    I meant of course

    Request.Form("textbox1")

    But it still doesn't work and I have set the preserve to True in the server.transfer

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Now I've found this article http://www.dotnetbips.com/displayarticle.aspx?id=183
    and I've implemented the EnableViewStateMac="False" in the Print.aspx, but still its not working

Posting Permissions

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



Click Here to Expand Forum to Full Width