need some help with page methods.
I'm using page methods in my web app, and now in few of those methods I need to check whether the request is ehm....secure?I have url parameters on my page, so each time page methodis called I check if those parameters are present and validate them against a DB, and then do the other stuff.
now...is there a way to implement this mechanic into each page methodI'm using, instead writing code inside each WebMethod ?
so what I have now is
public static string MyMethod(string value)
//1.checking if parameters passed are valid
//2.if true then performing actions, else just returning error
what I want to do is get rid of 1. inside the method, and have it like a wrapper or something, so I could do the same validation on each page method I want.
thanks for help
View Complete Post