|
|
how to check whether the form is submitted in asp? - ASP
|
Views : 253
|
|
Tagged in : ASP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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. |
|
By Ramya, On - 2010-01-29 |
|
|
|