CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   ASP.NET (http://www.codingforums.com/forumdisplay.php?f=40)
-   -   form processing, provent access to a page (http://www.codingforums.com/showthread.php?t=257890)

stevehungry 04-19-2012 06:50 PM

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,

alykins 04-19-2012 08:40 PM

IsPostBack
Edit: that's a ref link ^


All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.