日期:2014-05-18  浏览次数:20443 次

在formview中三个dropdownlist联动的.而且我还要将DropDownlist 与SqlDataSource中的字段绑定.联动现在不行了.也不能在第二次刷新页面了.
<asp:FormView ID="frmvProsPect" runat="server" DefaultMode="Insert" DataSourceID="sqlContract" OnItemInserting="frmvProsPect_ItemInserting" >
  <EditItemTemplate>
   
  <di>
  <div>Prospect&nbsp; Information</div>
  <div></div>
  <div>Prospect Form</div>
  <table style=" width:800px;">
  <tr>
  <td>BA</td>
  <td>
  <asp:DropDownList ID="ddlBA" runat="server" AutoPostBack="True" DataTextField="BAName" DataValueField="BAName" AppendDataBoundItems="True" OnSelectedIndexChanged="ddlBA_SelectedIndexChanged" CssClass="dropdownlist" DataSourceID="sqlBA" SelectedValue='<%# Bind("BA") %>'>
  <asp:ListItem>Please Select BA...</asp:ListItem>
  </asp:DropDownList>
  </td>
  <td>Region</td>
  <td>
   
  <asp:DropDownList ID="ddlRegion" runat="server" AutoPostBack="True" DataTextField="RegionName" DataValueField="ID" AppendDataBoundItems="True" OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged" CssClass="dropdownlist" DataSourceID="sqlRegion">
  <asp:ListItem Selected="True">Please Select Region...</asp:ListItem>
  </asp:DropDownList>
  </td>
  <td style="height: 23px">
  Area</td>
   
   
  <td>
  <asp:DropDownList ID="ddlProvince" runat="server" DataTextField="Province" DataValueField="Province" AppendDataBoundItems="True" CssClass="dropdownlist" DataSourceID="sqlProvince" SelectedValue='<%# Bind("Province") %>'>
  <asp:ListItem>Please Select Area...</asp:ListItem>
  </asp:DropDownList>
  </td>
  </tr>
  </table>
  <div>Distributor Information</div>
  <table style=" width:800px;">
  <t