how to check whether the form is submitted in asp?

by Ramya 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 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.

Tagged in:

892
like
0
dislike
0
mail
flag

You must LOGIN to add comments