View Full Version : form processing, provent access to a page

04-19-2012, 07:50 PM
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

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,

04-19-2012, 09:40 PM
IsPostBack (http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback(v=vs.100).aspx#Y0)
Edit: that's a ref link ^