如何在ASP 2.0中的中继器中的文本框控件中添加AutoCompleteExtender [英] how to add AutoCompleteExtender in Textbox control in a repeater in asp 2.0

查看:52
本文介绍了如何在ASP 2.0中的中继器中的文本框控件中添加AutoCompleteExtender的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I m working asp 2.0. For Dynamically Created Textbox i worked out same the AutoCompleteExtender. So for i have been tired in repeater control.But i m unable to finished it.If u anyone have idea give ur suggeston.Below is the sample code for that i need add the AutoCompleteExtender for the TextBox "txt_username".





<asp:Repeater id="repeaterentry" runat="server"  >
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>Name</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:TextBox id="txt_username" runat="server" Text='<%# Eval("USER_NAME") %>'  > </asp:TextBox>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

推荐答案



尝试以下

Hi

try the following

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" >
                <ItemTemplate>
                    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" >
                    </asp:GridView>
                      <asp:TextBox id="txt_username" runat="server" > </asp:TextBox>
                    <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txt_username" ServiceMethod="your method">
                    </asp:AutoCompleteExtender>
                </ItemTemplate>
                               </asp:Repeater>




希望这对您有帮助...




Hope this helps...


这篇关于如何在ASP 2.0中的中继器中的文本框控件中添加AutoCompleteExtender的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆