Skip to content

Using post instead of get

Vipul Kelkar

Asked Mar 17, 2009, 2:20 AM EDT1 answer
Share
LinkedInX

Hi guys...

While navigating to a web page m givin the page url in HREF and i want to pass a value to the next page.I am sending the value in the url and using Request.QueryString to get it

href"SubCategory.aspx?sc=Tv      But the value is visible in the url

Is there any other method.How to use the Post method to do this

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    In fact there are three techniques to send data

    The get via QueryString  url?param1= value1....paramN=valueN

    The post via Form you have to add an <from method=post action='your_url' ></form> with fields param1 ... paramN and add a submit button that transmits data to the server site

    The put via creating a webrequest and set its method to put  and by setting its credentials

    Please take a look on this code

    http://developer.constantcontact.com/node/112
    0