-
Form submit
I have a client side script to submit a form(on clicking on a button)
What check can I make in the server side whether the button is clicked?
As shown in the code, there is no item called "item".
How to handle the situation?
thanks in advance.
RK.
<% If Not (IsEmpty(Request.Form("item"))) Then
.......etc.
End If
%>
function yourfunc(abc)
{
document.frmProfile.submit
}
<form NAME="frmProfile" action = "DataBrowseBAK2.asp" Method="post">
...Called the yourfunc function
...Etc.
</Form>
-
Re: Form submit
I am not getting what exactly are you asking???If the Form is submitted only
by click of a Submit Button as you have written then why do you need to
check whether Button is clicked or not??Cause Form will then be submitted
only if user hits Submitted.
If you are Sumbitting the Form to the same page & want to perform some
server-side operations only if Form is submitted then you can check for any
Form var value that cannot be Null if Form is submitted:
IF Request.Form("someFormField") <> ""
'FORM SUBMITTED
END IF
-Sachin
"rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
news:3b6172ff$1@news.devx.com...
>
> I have a client side script to submit a form(on clicking on a button)
>
> What check can I make in the server side whether the button is clicked?
> As shown in the code, there is no item called "item".
> How to handle the situation?
>
> thanks in advance.
> RK.
>
>
> <% If Not (IsEmpty(Request.Form("item"))) Then
> .......etc.
> End If
> %>
>
>
> function yourfunc(abc)
> {
> document.frmProfile.submit
> }
>
>
> <form NAME="frmProfile" action = "DataBrowseBAK2.asp" Method="post">
> ..Called the yourfunc function
> ..Etc.
>
> </Form>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks