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
How to scroll Microsoft Web Brwoser ActiveX contorl in MFC
Can I define a document root in html for all the anchors on a page?
CKEditor: How to update textarea using javascript?
Insert Script from the command prompt
Private WAN
Mac OS X 10.6.3 Can't logon to Active directory
Windows Service crashing on one machine, not on the other
Display Key Fields
Setting up DNS records for a small business with a new domain
Permission Problems Creating Exchange Mailbox