如何在asp.net中添加事件处理程序
<asp:TextBox ID="txt_to" runat="server" CssClass="txt_box" Enabled="true">
</asp:TextBox>
<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
TargetControlID="txt_to" MinimumPrefixLength="2" CompletionInterval="10"
CompletionSetCount="3" EnableCaching="true" FirstRowSelected="true"
UseContextKey="True" ServiceMethod="GetCompletionList"
DelimiterCharacters=";, :"
ShowOnlyCurrentWordInCompletionListItem="true" />
我有一个带有自动完成扩展器的 txt_to 文本框,当自动完成建议某些电子邮件 ID 时,用户用鼠标选择建议或单击 Enter,如何添加事件处理程序以便;
插入到电子邮件 ID 的末尾。以便用户可以开始输入下一个电子邮件 ID,而无需输入 ;
<asp:TextBox ID="txt_to" runat="server" CssClass="txt_box" Enabled="true">
</asp:TextBox>
<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
TargetControlID="txt_to" MinimumPrefixLength="2" CompletionInterval="10"
CompletionSetCount="3" EnableCaching="true" FirstRowSelected="true"
UseContextKey="True" ServiceMethod="GetCompletionList"
DelimiterCharacters=";, :"
ShowOnlyCurrentWordInCompletionListItem="true" />
I have the txt_to
text box which has auto complete extender, when the some email id is suggested by the auto complete the user selects the suggestion with the mouse or clicks enter, How to add a event handler so that a ;
is inserted at the end of email id. so that the user can start typing for next email id without entering the ;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用下面的 JavaScript:
You can use javascript below: