2011-10-18 50 views
0

我有2 asp:ListBox控制在一個表內(並排),在ModalPopUpExtender內,並在Chrome瀏覽器中的這些列表框內的每一次點擊都作出一個口吃,就像它在屏幕上重繪。 (這種行爲只發生在Chrome中,經過IE9,Safari和Firefox測試)。asp:listbox stutter點擊裏面的鉻

代碼:

<tr id="Tr1"> 
    <td> 
     <asp:ListBox ID="ListBoxAvailableChannels" runat="server" Width="300px" Height="500px" 
      DataSourceID="ObjectDataSourceAvailableChannels" DataTextField="Name" DataValueField="Id" 
      AutoPostBack="True"></asp:ListBox> 
     <asp:ObjectDataSource ID="ObjectDataSourceAvailableChannels" runat="server" SelectMethod="GetAvailableChannelList" 
      TypeName="PlayerDataProvider"></asp:ObjectDataSource> 
    </td> 
    <td> 
     <table> 
      <tr> 
       <td> 
        <asp:ImageButton ID="ImageButtonAddChannel" runat="server" ImageUrl="~/Icons/Arrows/right.png" /> 
       </td> 
      </tr> 
      <tr> 
       <td> 
        <asp:ImageButton ID="ImageButtonRemoveChannel" runat="server" ImageUrl="~/Icons/Arrows/left.png" /> 
       </td> 
      </tr> 
     </table> 
    </td> 
    <td> 
     <asp:ListBox ID="ListBoxPlayerChannels" runat="server" Width="300px" Height="500px" 
      DataSourceID="ObjectDataSourcePlayerChannels" DataTextField="Name" DataValueField="Id" 
      AutoPostBack="True"></asp:ListBox> 
     <asp:ObjectDataSource ID="ObjectDataSourcePlayerChannels" runat="server" SelectMethod="GetPlayerChannelList" 
      TypeName="PlayerDataProvider"> 
      <SelectParameters> 
       <asp:SessionParameter DefaultValue="" Name="p_playerId" SessionField="SelectedPlayerId" 
        Type="String" /> 
      </SelectParameters> 
     </asp:ObjectDataSource> 
    </td> 
</tr> 

使用:最新AjaxControlToolkit和.NET 4

什麼是對口吃的原因,我如何擺脫它?

回答

0

設置AutoPostBack="True"解決了它。