jquery Mobile aand Asp.net Button click event not firing and redirecting to back url
I have follwing code on asp.net master page
- <div class="main" data-role="content">
- <div class="choice_list menuwrapper" >
- <ul data-role="listview" data-inset="true">
- <li><a href="CreateUser.aspx" data-transition="slidedown" >
- Create User
- </a></li>
- <li><a href="WebForm1.aspx" data-transition="slidedown">
- Manage User
- </a></li>
- <li><a href="Default.aspx" data-transition="slidedown">
- Upload File
- </a></li>
- </ul>
- </div>
- <asp:ContentPlaceHolder ID="MainContent" runat="server" />
- </div>
but when i try to click any button on createuser or other page the button_click event is not firing in asp.net and the page redirects to default.aspx, I found when gooogled that using
- $(document).bind("mobileinit", function () { $.mobile.ajaxEnabled = false; $.mobile.ajaxLinksEnabled = false; });
But it didnt help in my case
Any help would be appreicated!
Thanks!!