codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  I want the textbox values should be empty  dkarun at 16:42 on Tuesday, February 15, 2005
 

I have a form which contains a textbox and a sbumit button.After submit when we try to come back using "back" in internet explorer, I want the textfield value should be empty. I tried with setting content="no-cache" in the meta tags but its not working .

Is there anyother way to make this happen.

Thanks in advance

Dkarun

  Re: I want the textbox values should be empty  tgreer at 19:08 on Tuesday, February 15, 2005
 

That is normal browser behavior. Users could get very upset with a site that "blanked" their forms when they clicked the back button. You should find a way to make your site work without altering standard browser behavior.

What you'll have to do if you must do this, is handle the "submit" event.

Write a function that, on form submit, collects the form data into a long string or hidden variable. Then, the procedure will blank the form elements you want blanked, and lastly, submit the form.










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: ASP.NET web controls
•  netscape 6 browser problem
•  Re: Print .doc file from the website using System.Diagnostics.Process
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Re: Fullscreen code
•  Re: iframe targeting


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005