我有一个 ASP.NET Web 应用程序,它有一个下拉列表,可以拉出学生记录。这适用于所有浏览器、Android OS 和 IOS,除了 windows 平板电脑上的新 IE。有谁知道为什么它不加载或提取信息?
这是一些代码:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
DataSourceID="SqlDataSource3" DataTextField="zName" DataValueField="Id"
AppendDataBoundItems="True"
onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:TestDBConnectionString1 %>"
SelectCommand="SELECT Id, (lName + ', ' + fName) AS zName FROM bleaTest"></asp:SqlDataSource>
<asp:FormView ID="FormView1" runat="server"
DataSourceID="SqlDataSource1">
<ItemTemplate>
<span class="style1">Id:
<asp:Label ID="IdLabel" runat="server" CssClass="bold"
Text='<%# Bind("Id") %>' />
<br />
First Name:
<asp:Label ID="fNameLabel" runat="server" CssClass="bold"
Text='<%# Bind("fName") %>' />
Last Name:
<asp:Label ID="lNameLabel" runat="server" CssClass="bold"
Text='<%# Bind("lName") %>' />
<br /> Gender:
<asp:Label ID="genLabel" runat="server" CssClass="bold"
Text='<%# Bind("gen") %>' />
Agency:
<asp:Label ID="agencyLabel" runat="server" CssClass="bold"
Text='<%# Bind("agency") %>' />
<br />
Title:
<asp:Label ID="titleLabel" runat="server" CssClass="bold"
Text='<%# Bind("title") %>' />
</span>
<br />
</ItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:TestDBConnectionString1 %>"
DeleteCommand="DELETE FROM [bleaTest] WHERE [Id] = @Id"
SelectCommand="SELECT Id, fName, lName, agency, title, gen, hired, AppS, course, Location, SessNum, SDate, EDate, Hours, SitUps, pushUps, rTime, Grade FROM bleaTest WHERE (Id = @Id)"
UpdateCommand="UPDATE [bleaTest] SET [fName] = @fName, [lName] = @lName, [agency] = @agency, [title] = @title, [gen] = @gen, [hired] = @hired, [AppS] = @Apps, [course] = @course, [Location] = @Location, [SDate] = @SDate, [EDate] = @EDate, [Hours] = @Hours WHERE [Id] = @Id">
<DeleteParameters>
<asp:Parameter Name="Id" Type="Int32" />
</DeleteParameters>
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="Id"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="fName" Type="String" />
<asp:Parameter Name="lName" Type="String" />
<asp:Parameter Name="Agency" Type="String" />
<asp:Parameter Name="title" />
<asp:Parameter Name="gen" />
<asp:Parameter Name="hired" />
<asp:Parameter Name="Apps" />
<asp:Parameter Name="course" />
<asp:Parameter Name="Location" />
<asp:Parameter Name="SDate" />
<asp:Parameter Name="EDate" />
<asp:Parameter Name="Hours" />
<asp:Parameter Name="Id" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
先感谢您!!