I'm still using webforms. At the moment I'm not planning to use MVS, despite this I need / I would like to use Ajax with jQuery but to do this I need to create a static [WebMethod]
that acts as static, no session nor common things can be used, such getting things from DB using user data stored in session, at least easy way session[]=
.
[WebMethod]
public static void setAsRead(string rowid){}
(In the previous code I need to store in the page, as hidden field, the rowid of the table row which I need its data)
So I wonder whether placing a lot of pagemethods to do so is "normal" or we have to avoid this approach. I personally think that it's ugly to see this because the page nature, it's a webform, a page, not a webservice stack.
So what do you think? Are there security issues? Do I have to avoid ajax with webforms and thinking to migrate to MVC?