473,386 Members | 1,674 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,386 software developers and data experts.

Reset all form fields in code behind

How do I do this

--
David
Nov 19 '05 #1
4 2209
You can Response.Redirect to the same page to achieve this.
-Souri

Nov 19 '05 #2
While true, I rather get an understanding of why the OP wants to do this.
It's possible that what he/she is asking how to do, isn't what he/she wants
to do.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"souri challa" <so*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
You can Response.Redirect to the same page to achieve this.
-Souri

Nov 19 '05 #3
I have a form that is used to add records and edit current ones. I need to
reset the form when I am adding a new record.

--
David
http://www.helixpoint.com
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@tk2msftngp13.phx.gbl...
While true, I rather get an understanding of why the OP wants to do this.
It's possible that what he/she is asking how to do, isn't what he/she
wants to do.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"souri challa" <so*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
You can Response.Redirect to the same page to achieve this.
-Souri


Nov 19 '05 #4
if what you need is just to reset the form and have it ready for data input,
then I think souri's suggestion if fine. But if you have a message such as
"Record ... added!" to communicate with your user after each adding /
updating, then
all I can think of is to do it manually!
Not sure if this is the best practice.

"Fetty" <da***@helixpoint.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I have a form that is used to add records and edit current ones. I need to
reset the form when I am adding a new record.

--
David
http://www.helixpoint.com
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@tk2msftngp13.phx.gbl...
While true, I rather get an understanding of why the OP wants to do this. It's possible that what he/she is asking how to do, isn't what he/she
wants to do.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"souri challa" <so*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
You can Response.Redirect to the same page to achieve this.
-Souri



Nov 19 '05 #5

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

Similar topics

9
by: YoBro | last post by:
Hi, Is this possible, if so how would you go about it. I have a reasonably large form that includes 6 file input fields. I wanted to create an option to allow the user to reset only the file...
1
by: Joe Bloggs | last post by:
I have a form which includes a checkbox field. I need to add a reset, I add a HTML reset it works fine before I submit the form but not after. I know I must add some code to reset the checkbox on...
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...
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. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.