Results 1 to 5 of 5

Thread: Request.form method

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    46

    Lightbulb Request.form method

    hi!

    i wanted to get the posted values from other page. i dont want to use the quesrrystrng. is there a way todo this kinda process. thanks in advance.
    Kanaka Prasad

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    I've not actually done this myself but it should be pretty easy.
    Something like
    Code:
    <form id="Form1" action="webpage.aspx" method=post runat="server">
    and then on your recieving page (webpage.aspx in this case)
    Code:
            Dim strText As String
            strText = Request.Form("txtText")
    Where "txtText" is a control on your form.

    I'm only guessing, so if you try it let me know if it's right, cheers.

    Or you could always store the values in session variables which is what i tend to do.
    Last edited by Fishcake; Oct 2nd, 2003 at 10:11 AM.

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    46
    it doesnt work with .aspx pages. i tried it but i found the other way

    Server.Transfer("target.aspx", True)

    if u use true the values are preserved. but i am getting an error

    "The View State is invalid for this page and might be corrupted"

    if u guys know about this please help

    thanks
    Kanaka Prasad

  4. #4
    Hyperactive Member
    Join Date
    May 2003
    Location
    india
    Posts
    273

    u try this way

    get the value from the database because u must b edoing authentication and u have a context.user.identity value then get the value from there.I hope your contect.user,identity.name is primary value.try this..

  5. #5
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32
    Hey ...

    Have you thought of storing the data in session variables or cookies ... idealy session variables

    Regards,

    Harris
    You'll get life just for once so don't waste it .......

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