...

View Full Version : asp form



phillip_ewing
01-27-2003, 09:55 PM
When creating an asp form, is there a way to erase all input fields prior to typing?

ex:
I have an inventory database and when a user adds an item in, they have to erase the previous input fields data when the form opens up.

Thank you in advance, Phillip

Leeus
01-27-2003, 11:09 PM
If you want to erase the content of the form you will need to use javasciprt to clear the contents of the form, you should call the function from the body onload.

phillip_ewing
01-27-2003, 11:54 PM
Can you please provide an example?

Thank you, Phillip

whammy
01-28-2003, 01:27 AM
Unless you specify the fields having a value, then they should already be blank. Can you show me an example of what you're talking about?

Just guessing here:



<input type="text" name="whatever" value="" />


instead of



<input type="text" name="whatever" value="<% = whatever %>" />



Most new ASP developers have the reverse problem - prepopulating fields when they WANT to. ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum