• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Posting a form in ASP.Net

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Posting a form in ASP.Net

    Not sure if I'm trying to do this the correct way but I have an ASP.Net web page where I would like to catch the click event on the server from an ASP:Button control (Done this bit - easy) but then within this processing dynamically create a Form Post to specific URL with the Form parameters being dynamically created.

    Make sense to anyone?

    I'm trying to avoid having the hidden field parameters visible in the page source and don't want to use the querystring to request the page as that would also reveal the parameters. I have no control over the page I'm posting too.

    TIA
    "The power of accurate observation is commonly called cynicism by those who have not got it" - George Bernard Shaw

    #2
    Do some searches for the HttpWebRequest class in the framework.

    http://www.netomatix.com/HttpPostData.aspx


    Bear in mind that the values are still plain text when posted just like they are if they appear in the url querystring.

    http://www.w3.org/TR/html4/interact/...ml#h-17.13.4.1

    Comment

    Working...
    X