how to check whether the form is submitted in asp?
by Ramya[ Edit ] 2010-01-29 15:50:59
check whether the form is submitted in asp - Request.Form.Count:
To check if the form is submitted use Request.Form.Count. It results
0 if the form is not submitted and
1 if the form is submitted.
If (Request.Form.Count > 0) Then
Response.Write("Form is submitted
")
End If
Output:
Displays "Form is submitted
" if the form is submitted.
If the form has POST method you can do with such code. If the form has GET method then you cant use this method to check whether the form is submitted.