asp:DropDownList onselectedindexchanged在Jquery mobile中不起作用?

时间:2012-02-17 19:39:16

标签: jquery jquery-mobile

在我的项目中,我使用的是Asp.net + jquery Mobile。在那里,我有两个下拉列表,我wanaa经常更改第二个DropDown First DropDown。

但onselectedindexchanged不起作用。即使我也检查断点。没用?。

我的代码低于......     <%@ Page Language =“C#”AutoEventWireup =“true”CodeBehind =“OutLet.aspx.cs”Inherits =“MobileApp.OutLet”%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.5; user-scalable=no;" />
    <%--Mobile Css & jquery 1.0b3--%>
    <link href="Styles/jquery.mobile-1.0b3.css" rel="stylesheet" type="text/css" />

    <script src="Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.mobile-1.0b3.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server" data-ajax="false">
      <%--  <div id="mainheader" class="ui-header-fixed ui-bar-a">      
        </div>--%>
        <div id="Div1" class="ui-content ui-body-a" runat="server">           
            <asp:DropDownList ID="ddlOutlet" runat="server" AutoPostBack="True" onselectedindexchanged="ddlOutlet_SelectedIndexChanged" >
            </asp:DropDownList>
            <br />
            <asp:DropDownList ID="ddlServedAt" runat="server" AutoPostBack="True">
            </asp:DropDownList>
            <br />
            <asp:Button ID="btnLogin" runat="server" Text="Submit" onclick="btnLogin_Click" />        
            <asp:Button ID="Button1" runat="server" data-role="button" data-inline="true" 
                onclick="Button1_Click" Text="Button" Visible="False" />
        </div>
      <%--  <div id="Div2" class="ui-footer-fixed ui-bar-e" runat="server">
            <asp:Button ID="btn" Text = "Home" runat="server" />
            <asp:Button ID="Button1" Text = "Back" runat="server" />
            <asp:Button ID="Button2" Text = "Table" runat="server" />
            <asp:Button ID="Button3" Text = "Pax" runat="server" />
        </div>--%>
    </form>
</body>
</html>

我评论脚本链接,..现在我得到了ASP.NET事件完全解雇。但它不紧凑移动?所以任何建议/ ..

 <script src="Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
        <script src="Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
        <script src="Scripts/jquery.mobile-1.0b3.js" type="text/javascript"></script>

0 个答案:

没有答案