AndyMcKenna
AndyMcKenna

Reputation: 2647

jQuery Mobile and ASP.NET WebForms

I'm using jQuery Mobile 1.1 and .NET 3.5 WebForms. I've got a few dropdowns that I populate with choices in the Page_Load after checking !Page.IsPostBack. When using JQM, the UpdatePanel with these dropdowns comes back with all of the dropdowns empty. I feel like this is something with ViewState because it's all of the controls that were previously filled by the code. The dropdowns that are filled out in the ascx don't have the same problem.

The only thing in my mobileinit is:

$.mobile.ajaxEnabled = false;

Upvotes: 0

Views: 524

Answers (1)

andleer
andleer

Reputation: 22568

jQuery Mobile, asp.net web forms and update panels simply don't work with one another:

JQueryMobile dialog shows twice because of a postback

You may also be having issues related to the select menu not refreshing when changes occur within the update pannel. Consider manually refreshing that:

$("#mySelectMenu").selectmenu("refresh");

Upvotes: 1

Related Questions