Reset button doesn't work 
Author Message
 Reset button doesn't work

Hi,

I have a form in my data entry ASP page. The reset button doesn't work now.

My code is below:

<%
......
if not isempty(Request.Form("btnSave")) then
    'update the current records
elseif not isEmpty(Request.Form("btnCopy")) then
    'copy the current record
elseif not isEmpty(Request.Form("btnDelete")) then
    'delete the current record
else
    'display the Last record on the screen
......
%>
<html>
.....
<form name=form1 action="post back to same page" method=post>
......
<input type=submit value="Save" name="btnSave">
<input type=submit value="Copy" name="btnCopy">
<input type=submit value="Delete" name="btnDelete">
<input type=reset value="Reset" name="btnReset">
....
</form>
</html>

Can anyone help?

Thanks.

Jun



Tue, 09 Mar 2004 06:51:45 GMT  
 Reset button doesn't work
Not clear what the problem is.


Quote:
> Hi,

> I have a form in my data entry ASP page. The reset button doesn't work
now.

> My code is below:

> <%
> ......
> if not isempty(Request.Form("btnSave")) then
>     'update the current records
> elseif not isEmpty(Request.Form("btnCopy")) then
>     'copy the current record
> elseif not isEmpty(Request.Form("btnDelete")) then
>     'delete the current record
> else
>     'display the Last record on the screen
> ......
> %>
> <html>
> .....
> <form name=form1 action="post back to same page" method=post>
> ......
> <input type=submit value="Save" name="btnSave">
> <input type=submit value="Copy" name="btnCopy">
> <input type=submit value="Delete" name="btnDelete">
> <input type=reset value="Reset" name="btnReset">
> ....
> </form>
> </html>

> Can anyone help?

> Thanks.

> Jun



Tue, 09 Mar 2004 20:40:24 GMT  
 Reset button doesn't work
Why not try client-side rather than server-side.

EX -

<script language=VBScript>
    sub btnreset_OnClick()
        form1.reset
    end sub
</script>


Quote:
> Hi,

> I have a form in my data entry ASP page. The reset button doesn't work
now.

> My code is below:

> <%
> ......
> if not isempty(Request.Form("btnSave")) then
>     'update the current records
> elseif not isEmpty(Request.Form("btnCopy")) then
>     'copy the current record
> elseif not isEmpty(Request.Form("btnDelete")) then
>     'delete the current record
> else
>     'display the Last record on the screen
> ......
> %>
> <html>
> .....
> <form name=form1 action="post back to same page" method=post>
> ......
> <input type=submit value="Save" name="btnSave">
> <input type=submit value="Copy" name="btnCopy">
> <input type=submit value="Delete" name="btnDelete">
> <input type=reset value="Reset" name="btnReset">
> ....
> </form>
> </html>

> Can anyone help?

> Thanks.

> Jun



Fri, 12 Mar 2004 07:41:05 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MS SQL errorcodes

2. Help Help help Building Form with Noramalized data.

3. Reset button doesn't work

4. Reset button doesn't work

5. ActiveX-Exe: .Value=True doesn't work while direct click on button works

6. Invalid BLOB handle in record buffer

7. My button doesn't work??

8. Back button doesn't work properly

9. Why doesn't this button work?

10. Button doesn't work in new document

11. Button.Focus() method doesn't work (sometimes)

12. Set button = New CommandButton1 (Doesn't work=!?)

 

 
Powered by phpBB® Forum Software