Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2011
    Location
    England
    Posts
    29
    Thanks
    0
    Thanked 5 Times in 5 Posts

    form processing, provent access to a page

    Hello all,
    Im a bit new to ASP.net and was wondering how i could go about creating something similar to php's $SERVER request_method
    Code:
    if ($SERVER['request_method'] != "post") {
    //do stuff
    }
    in ASP.net using VB, if thats true then i'd like a response.redirect() to take them to a different page. I realise that this isn't a 100% foolproof way of securing a page but its nothing that needs a great deal of security, its mainly for the user's benefit than for security. i would really appreciate the help.

    Thank you for reading,
    Steve,

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,711
    Thanks
    41
    Thanked 191 Times in 190 Posts
    IsPostBack
    Edit: that's a ref link ^

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Tags for this Thread

    Posting Permissions

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