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
Excel addins
Using cfheader and cfcontent to obfuscate download path.
SQL2005 View being forced to Encrypted
Communication between 2 remote Servers
Unable to install Webmin
Exchange Server mail delay.
Windows Server 2008 R2: missing start menu of installed applications
Exporting from SQL Server 2005 Table to Flat file with UTF-8 Problem.
get 550 5.7.1. Unable to relay for specific domains....
Table Design