how to check whether the form is submitted in asp? - ASP Views : 253
Tagged in : ASP
0 0
Send mail
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 Razz
")
End If


Output:
Displays "Form is submitted Razz
" 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.
By Ramya, On - 2010-01-29



    Login to add Comments .