Clear the saved value in a TextBox

J

Jason Huang

Hi,

In my C# .Net 2.0 Web, I have some TextBoxes in a webpage.
However, if I typed some values in those TextBoxes, those values are saved
in some place, the next time I click those TextBoxes, DownArrow it and those
value will show up.
How do I clear those values in the .Net 2.0?
Thanks for help.


Jason
 
A

Alberto Poblacion

Jason Huang said:
In my C# .Net 2.0 Web, I have some TextBoxes in a webpage.
However, if I typed some values in those TextBoxes, those values are saved
in some place, the next time I click those TextBoxes, DownArrow it and
those value will show up.
How do I clear those values in the .Net 2.0?


They are not saved in the .Net 2.0. They are saved by your browser. In
Internet Explorer 7 you clear them by selecting Tools -> Internet Options ->
Delete... -> Form Data.
 
J

Jeff Johnson

In my C# .Net 2.0 Web, I have some TextBoxes in a webpage.
However, if I typed some values in those TextBoxes, those values are saved
in some place, the next time I click those TextBoxes, DownArrow it and
those value will show up.
How do I clear those values in the .Net 2.0?

This feature is called AutoComplete, and it's a function of your browser. If
you're only looking to clear out those values for yourself, do as Alberto
suggested. If you're trying to do this for users of your Web site, you
can't. The only way you could prevent AutoComplete would be to continually
make up a different name (or id?) for the text box every time you serve up
the page, because I believe browsers associate their AutoComplete lists with
controls by means of the name of the control. This is why you might see a
long list of email addresses you've typed in the past when filling out some
forms and not on others (or you see a different list), because most
developers name their text box "email" while others use, say,
"emailaddress," and the browser will store two different lists.
 
M

Michael J. Ryan

In my C# .Net 2.0 Web, I have some TextBoxes in a webpage.
However, if I typed some values in those TextBoxes, those values are saved
in some place, the next time I click those TextBoxes, DownArrow it and those
value will show up.
How do I clear those values in the .Net 2.0?
Thanks for help.

Turn off auto-complete in your browser, uninstall any addons/plugins/toolbars
that provide autocomplete in your browser... This has nothing to do with your
app.
 
A

Ademola Adedeji

Hi,

In my C# .Net 2.0 Web,  I have some TextBoxes in a webpage.
However, if I typed some values in those TextBoxes, those values are saved
in some place, the next time I click those TextBoxes, DownArrow it and those
value will show up.
How do I clear those values in the .Net 2.0?
Thanks for help.

Jason


for internet explorer, Go to Internet Options --> Contents -->
AutoComplete --> Settings -->remove the checkbox from forms --> click
Ok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top