How do I post to an off-site form with view-state enabled?

Discussion in 'ASP .Net' started by Zenobia, Jul 2, 2004.

  1. Zenobia

    Zenobia Guest

    Hi

    I need to emulate a page that posts to a form. This form is just
    a minor part of the page.

    The form has 4 radio buttons, a hidden text box and 2 submit
    buttons each with different values.

    The form posts to a foreign URL (i.e. an off-site page) using
    the GET method.

    I would like to do this within an ASP page with postback enabled
    so presumably I will have RadioButtonList, 2 buttons and a
    sub-routine to do the form posting. What ASP.NET method sends
    data to a form using GET?
     
    Zenobia, Jul 2, 2004
    #1
    1. Advertising

  2. Zenobia

    bruce barker Guest

    look at the webclient library. if you are posting to a .net form, your page
    will need to do a get and parse the html for the a valid viewstate value
    before posting back.

    -- bruce (sqlwork.com)


    "Zenobia" <> wrote in message
    news:...
    > Hi
    >
    > I need to emulate a page that posts to a form. This form is just
    > a minor part of the page.
    >
    > The form has 4 radio buttons, a hidden text box and 2 submit
    > buttons each with different values.
    >
    > The form posts to a foreign URL (i.e. an off-site page) using
    > the GET method.
    >
    > I would like to do this within an ASP page with postback enabled
    > so presumably I will have RadioButtonList, 2 buttons and a
    > sub-routine to do the form posting. What ASP.NET method sends
    > data to a form using GET?
    >
     
    bruce barker, Jul 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gabor
    Replies:
    3
    Views:
    654
    Jacob Yang [MSFT]
    Aug 26, 2003
  2. mark4asp
    Replies:
    1
    Views:
    1,181
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Mar 24, 2007
  3. Parthiv Joshi
    Replies:
    1
    Views:
    768
    Samuel L Matzen
    Jul 6, 2004
  4. Franklin H.
    Replies:
    4
    Views:
    169
    David Efflandt
    May 8, 2005
  5. Word Painter
    Replies:
    2
    Views:
    101
    Thomas 'PointedEars' Lahn
    Dec 11, 2006
Loading...

Share This Page