Help Using web Custom control in a Repeater

J

JAPHET

I have a web custom control consist of three text box i.e Employee
number,First name, Last Name. I Created a web form with a Repeate control,
I want to attach a Custom control to a repeater so as I can add a multiple
rows at a time to my employee table.
PLz help me how can i achieve this.
Japhet.
 
S

Scott Allen

HI Japhet:

You can add the control directly into the item template like any other
web control. i.e.:

<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td><uc:MyControl Runat="server" ID="MyControl" /></td>
</tr>
</ItemTemplate>
</asp:Repeater>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top