The AutoComplete feature does not work when you use script to submit a form. For example, AutoComplete may not function when you view Microsoft ASP.NET Web Forms that use postback to process events on controls other than the
Submit button.
WORKAROUND
To work around this problem, explicitly save the form in the AutoComplete data store:
- Copy the following code to create an HTML page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<SCRIPT>
function subForm()
{
window.external.AutoCompleteSaveForm(f1);
f1.submit();
}
</script>
</HEAD>
<BODY>
<FORM id=f1>
User ID : <input type=text name=id></input><br>
Password :<input type=password name=pw></input><br>
E-mail :<input type = text VCARD_NAME = "vCard.Email"> <br>
<input type=button value=submit onclick="subForm()">
</FORM>
</BODY>
</HTML>
- Fill in the correct information, and then click Submit.
- Revisit the page, and then type in a field that has the same name as a stored field. The AutoComplete attribute works; it provides an AutoComplete box that contains a list of previously-stored data.