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
SSIS and variable issues
MS Access 2007 -- Using Like with Left Join
Re-designing an existing DB - start from paper?
sharepoint foundation 2010 on 32 bit?
How do I check if the the value of a column
Backup Exec 2010 on VMWare server backing up iSCSI targets - looking to improve throughput
office 2007 settings not saved in user profile in terminal server
htaccess 302 redirect - seamless hidden url
Columns cannot convert between unicode and non-unicode string data types.
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed.