If I have a simple html page with a small form whose data I’d like to store in a DB on the server, what do I need on my server to be able to accept the form input?
I’d rather not use any ASP.NET code in the HTML page.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As I mentioned in the comments, the closest thing to a Java Servlet in ASP.NET is a raw implementation of
IHttpHandler. You’ll note it has the following contract:This is very similar to a Java servlet which exposes the method:
The difference being that in
ProcessRequestyou’ll grabcontext.Requestandcontext.Response.Finally, you need to register your handler in the
web.config: