Microsoft
Software
Hardware
Network
Question : How do I hide/show divs in a custom (ascx) control inside an asp:repeater control?
Hi:
I've got a standard asp:repeatercontrol on an aspx page.
The item template of the repeater contains a custom user control.
The custom user control contains a <div>.
I'd like to be able to hide/show the div-->> PaymentInfoType using javascript without postbacks.
I know I have to somehow dynamically name the div, but I'm unsure of how to do
that when it's in a custom control.
I've found examples which are close, but they deal with asp.net controls and divs
embedded directly in the item template.
==========================
==========
==========
==========
=======
This is what my asp:repeater control looks like:
==========================
==========
==========
==========
=======
<div id="div1">
<asp:Repeater ID="Repeater1" runat="server" >
<HeaderTemplate>
<table border="1" width="800px">
<tr>
<td>
<strong> Repeater Header</strong>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="indent vmid">
<uc1:CustomUserControl ID="CustomUserControl1" runat="server"
Index ='<%# DataBinder.Eval(Container,
"ItemIndex") %>'
FullName='<%# DataBinder.Eval(Container.
DataItem, "FullName") %>'
/>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
==========================
==========
==========
==========
=======
This is what a snippet of my custom user control looks like (ascx)
==========================
==========
==========
==========
=======
<asp:Label ID="lTravelerTourCenterID"
Width="10" runat="server" Visible="false"/>
<asp:Label ID="lFullName" Width="170" runat="server" />
<div class="rowPayment smaller mrgl30" id="PaymentInfoType" runat="server" visible="false">
<div class="columnA" id="divCheck" runat="server" >
<exp:Check ID="checkPayment" runat="server" />
</div>
</div>
Thanks very much in advance,
JohnB
Answer : How do I hide/show divs in a custom (ascx) control inside an asp:repeater control?
sure, create a forward lookup zone like example.com
inside it, create an A record for "*" no quotes
assign it whatever ip address you want
Random Solutions
Access / how many users connected?
how can i get Hard Disk Serial number (unique) in C#.net web application ??
Microsoft Outlook 2007 is pulling duplicate emails from free hotmail live server - how can I prevent this, its driving me mad.
How to tranlate SQL query to WQL query for SCCM 2007
swf file won't play on the web
How to Transfer All ZIP files from a FTP Directory using Powershell
trying to print to HP laserjet 2050 - and constantly have to hit "ok" button to print
Update HP onboard administrator SSH version?
Updating a Data Set that has been returned from a Function or DLL
Default Printer Changes using Terminal Server