How do i check if my form has been submitted in classic ASP?
Share
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.
First, you can check, if
Request.ServerVariables("REQUEST_METHOD")= "POST". That is, assuming, you use POST method to submit the form, the initial load will have GET method, the subsequent submits will be POST.You can also add a hidden field in your form, if that variable is set in POST data (
Request.Formobject), you will know it is a postback, otherwise it is the first load.