473,408 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Form Reset

Hi
If I have a page that has some text boxes and some dropdown list and some
buttons How do I go about place a reset button on the page. This button
should clear all the text boxes and reset the dropdown list to the default
value.

Thanks
Nov 17 '05 #1
4 2983
Doing a response.redirect or server.transfer to the samepage on press of
reset is just about the easiest way.

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi
If I have a page that has some text boxes and some dropdown list and some buttons How do I go about place a reset button on the page. This button
should clear all the text boxes and reset the dropdown list to the default
value.

Thanks

Nov 17 '05 #2
This only seems to works when you all required fields are filled in. I wish
to have it reset all feilds regardless of if they are valid or not. Is there
somethingmore I must do.

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Doing a response.redirect or server.transfer to the samepage on press of
reset is just about the easiest way.

Nov 17 '05 #3
You will have to say CausesValidation = false for the reset button

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:uI**************@TK2MSFTNGP09.phx.gbl...
This only seems to works when you all required fields are filled in. I wish to have it reset all feilds regardless of if they are valid or not. Is there somethingmore I must do.

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Doing a response.redirect or server.transfer to the samepage on press of
reset is just about the easiest way.


Nov 17 '05 #4
You will have to say CausesValidation = false for the reset button

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:uI**************@TK2MSFTNGP09.phx.gbl...
This only seems to works when you all required fields are filled in. I wish to have it reset all feilds regardless of if they are valid or not. Is there somethingmore I must do.

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Doing a response.redirect or server.transfer to the samepage on press of
reset is just about the easiest way.


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Roger Price | last post by:
Thank you to Yang (Is that your first name?) and Andy for your suggestions. I am 99% of the way there but now cannot get the "Reset" button to work. I have included the whole of my code and...
9
by: Ken | last post by:
How can I reset the initial form variables that are set with session statements when clicking on a button? I tried this but the function was not called: <?PHP function reset_form($none) {...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
4
by: Dries De Rudder | last post by:
Hi, I am trying to bind an object to form controls. I've got an object MyObject which has some properties e.g. ID. I've got a form, Form1, that contains a textbox ,TextBox1, now I want to...
2
by: Roger Withnell | last post by:
I need to reset a form to its original value using onclick rather than the Reset button. So, I have: <input type="button" name="reset" id="reset" value="Reset" onclick="form1.reset();"> where...
10
by: jaxent | last post by:
Does anyone know why IE gives the error "'document.myForm.dummy' is null or not an object" on the following page? Firefox does what I expect, creates a text box and writes "hello" in it. <html>...
7
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a...
16
by: sreemati | last post by:
Hi everyone, This is the scenario: I have two button - Submit and Reset Submit is used for validation and after validation is passed it passes it to another form to enter into database. ...
11
by: newbie | last post by:
i have a form in which a hidden field (initial value as '0', and my javascript set it to '1' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field...
3
by: artev | last post by:
when is load a page I have a form with some elements that are text, textfield, select, select multiple, checks, radios. where text and textfield are filled with some words, select have how first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.