zoukankan      html  css  js  c++  java
  • AutoCompleteExtender in Safari create new line after TextBox

    AutoCompleteExtender in Safari create new line after TextBox, The first line work correctly, second line create new line after textbox.

    Safari_AutoCompleteExtender_CarriageLine_Bug

    <asp:TextBox ID="txtSearchById" runat="server" autocomplete="off"  ></asp:TextBox>

    <asp:Button ID="btnSearchById" runat="server"  Text="Search"  OnClick="btnSearchById_Click" />

    <ajaxToolkit:AutoCompleteExtender runat="server" ID="DistrictID_autoComplete" TargetControlID="txtSearchByID"
                    ServicePath="DAutoComplete.asmx" ServiceMethod="GetIDCompletionList"
                    MinimumPrefixLength="2" CompletionInterval="500" CompletionSetCount="20"    >
    </ajaxToolkit:AutoCompleteExtender>

    Solution(Use TABLE to layout, do not put anything after TextBox – even &nbsp;)

    <table>
            <tr>
             <td>
                      Search by<asp:TextBox ID="txtSearchById" runat="server" autocomplete="off" ></asp:TextBox>

            </td>
            <td>
                 <asp:Button ID="btnSearchById" runat="server"  Text="Search"  Height="23px"  OnClick="btnSearchById_Click" />
             </td>
          </tr>
    </table>

    <ajaxToolkit:AutoCompleteExtender runat="server" ID="DistrictID_autoComplete" TargetControlID="txtSearchByID"
                ServicePath="DAutoComplete.asmx" ServiceMethod="GetIDCompletionList"
                MinimumPrefixLength="2" CompletionInterval="500" CompletionSetCount="20"    >
    </ajaxToolkit:AutoCompleteExtender>
  • 相关阅读:
    数组中,奇数放前偶数放后
    回溯法
    java+selenium的helloworld
    我为什么反对纯算法面试题
    算法面试题
    关于算法
    伴随开发人员成长的问题:工程重要,还是算法重要?细节重要,还是架构重要?
    数据结构和算法为什么这么重要?
    JSP网站开发基础总结《三》
    JSP网站开发基础总结《二》
  • 原文地址:https://www.cnblogs.com/emanlee/p/1546017.html
Copyright © 2011-2022 走看看