473,805 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to reset all the forms of an entire aspx page?

hmtl reset does not seem to work or i'm i doing something wrong?
MT

JB
Nov 19 '05 #1
3 1300
Josh,

Please set the correct date on your computer clock.

Juan
======

"Josh" <s@a.com> wrote in message
news:OJ******** ******@TK2MSFTN GP10.phx.gbl...
Nov 19 '05 #2
Jensen bredal wrote:
hmtl reset does not seem to work or i'm i doing something wrong?
MT

JB


The html reset button does not "clear" all inputs, but resets
then to the "original" values, that is: the values as defined
in the html sourcecode as received by the browser.
This doesn't work well in combination with postbacks: after
postback the html source containes the values as entered by
the user!

One generic server-side solution could be to loop through
all Controls on the page (recursive: you need to find
controls within controls) and "reset" them (TextBoxes to
String.Empty, clear checkboxes etc.).
--
Hans Kesting
Nov 19 '05 #3
> hmtl reset does not seem to work or i'm i doing something wrong?

If you use javascript to access the document object model youll see that
there is a forms collection, you can iterate through that and call the reset
method on each one.
Nov 19 '05 #4

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

Similar topics

9
8413
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 input fields. Currently if they select an image to upload and realise it is the wrong one there is no way of resetting it. Except of course, manually deleting the text out of the field.
4
1582
by: Peter Strøiman | last post by:
Hi. I have an ASP page that will receive a lot of post data ( sometimes many MB! ). The ASP page processes the data sequentially, but does not need the entire data stored in memory. Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive. Then I would just begin to chunk my way through the Request.InputStream.
5
1380
by: Bernie V | last post by:
Hi group, I have a waebform to send emails. On the form there are 2 buttons: A button "send" and a button "reset". If I click aon the button my email is send, but I want to reset the values on my form (to send another email). How can I do that. ?
11
2152
by: Sandra Castellanos | last post by:
Hello, I want to know what I have to do to make the enter key to submit forms. I read in another newsgroup that inserting an html hidden text box made the trick, and it actually does, but in my page I have more than one web control that have their independient "forms" (in the .NET environment, it makes it to be just one). And I need that, if the user is, say, writing the keywords to perform a search, the enter key submits this form, but...
1
1607
by: Shawn McNiven | last post by:
Hi, I've got a problem I hope someone can help me with. First some long winded explanations: I have several forms: Countries.aspx, Country.aspx, Cities.aspx and City.aspx. Countries displays a list of countries which can be filtered with a search function. Country displays the selected record from Countries. From Country, the user can select the "View Cities" button which transfers them to the Cities page (in this case a listing of...
4
5647
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no SSL no forms auth. One of the subfolders in the public area is the root of a "protected" area; SSL is required from this subfolder on forward and a web.config in the subfolder specifies forms authentication. From the public area, I provide a...
3
3015
by: Stu Lock | last post by:
Hi, Is there a way of requiring a log in for individual asp.net pages rather than securing a entire directory. I have a web app where there are 100+ pages but only 2 need to be password protected. I am currently using forms authentication to block the entire folder: <authentication mode="Forms"> <forms name=".MYCOOKIE" loginUrl="login.aspx"
4
5335
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 that can be ignored). When I press the button the first time, the click handler hides the textbox. Pressing the button a second time unhides the textbox. The text box is maintaining its value when hidden via view state. (The value is NOT being...
2
4841
by: Lance | last post by:
I want to be able to reset a complex property in a PropertyGrid. I know that for properties that are ValueTypes you can include System.ComponentModel.DefaultValue in the declaration of the property. But, for complex property types (e.g., instance types) this does not work because System.ComponentModel.DefaultValue requires a constant value In order to indicate if a property should be serialized you can include a boolean function named...
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10609
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10360
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10366
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10105
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.