Posted on: 11/4/2013 7:13:56 PM | Views : 724

Hi to all!

I have a datalist with some records:
<asp:DataList ID="RptMoradas" runat="server"> <itemtemplate> <asp:Label ID="MoradaID" runat="server" Text='<%# Container.DataItem("MoradaID") %>'></asp:Label><br /> <asp:Label ID="MoradaLocal" runat="server" Text='<%# Container.DataItem("MoradaLocal") %>'></asp:Label><br /> <asp:button ID="BtnSelect" runat="server" text=" select this " /> </itemtemplate> </asp:DataList> and outside I have the:
<asp:Textbox Id="TxtLocal" runat="server" /> so, what I need is: when someone click/press the Button (BtnSelect) the textbox TxtLocal = label MoradaLocal

How can I?
thanks in advance!

Go to the complete details ...