jQuery Autocomplete losing text on AutoPostBack

Posted by Moose on Stack Overflow See other posts from Stack Overflow or by Moose
Published on 2009-05-05T22:12:23Z Indexed on 2010/05/31 19:43 UTC
Read the original article Hit count: 332

I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been working great until now. I also have a DropDownList that I have a need to fire onSelectedIndexChanged with AutoPostBack.

When I changed my code to do the AutoPostBack, the text field that has the jQuery AutoComplete on it comes back blank. However, if I look at the source of the page, the text is in the text field. If I now post the form, the page will send back a blank field. My Google-Fu is weak on this one, as I could not come up with any workaround for it.

Has anyone had any issues like this with the Autocomplete field getting blanked out on an AutoPostBack, and how did you get around it?

I can post code if it's really necessary, but I'd need to sanitize a lot of it before I could due to company policy.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery