I have a very simple asp.net form.
a text box, a dropdownlist with autopostback, a submit button
- now if i type in some value into the textbox
- and then select an item in the dropdown which causes a page postback.
- then click on submit button
the value in the text box does not get saved into the autocomplete data store.
if i do the opposite.
- select an item from the dropdown which will cause a page postback.
- type in some values in the textbox.
- click submit. the value is saved for the autocomplete.
I think this may have something to do with the page life cycle and the viewstate. but how do i get around this issue? I'm using 开发者_StackOverflow社区IE8.
I have tried the AutoCompleteSaveForm command. but it does not work if there's a postback immediately after the execution of it.
Use this for IE:
if($.browser.msie){window.external.AutoCompleteSaveForm(FormName)};
It does not work for Firefox and I'm trying to find the answer for that....
精彩评论