【发布时间】:2013-09-12 03:04:07
【问题描述】:
我想要我的中继器行 - 当单击时扩展面板中的几个文本框。这里我已经使用数据库中的数据以表格格式完成了中继器。当单击中继器中的每一行时,我需要一个面板可见带有文本框。当再次单击该行时,面板必须变为不可见。
提前感谢您的帮助
<asp:Repeater ID="RepSample" runat="server" DataSourceID="SqlDataSource1">
<HeaderTemplate>
<table cellpadding="1" cellspacing="1" width="100%" style="font-family: Verdana;
border: 1px solid #C0C0C0; background-color: #D8D8D8">
<tr bgcolor="#FF781E">
<th>
LicenseID
</th>
<th>
LicenseName
</th>
<th>
StartDate
</th>
<th>
EndDate
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="background-color: White">
<td>
<%#DataBinder.Eval(Container, "DataItem.LicenseID")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.LicenseName")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.StartDate")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.EndDate")%>
</td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr>
<td>
<%#DataBinder.Eval(Container, "DataItem.LicenseID")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.LicenseName")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.StartDate")%>
</td>
<td>
<%#DataBinder.Eval(Container, "DataItem.EndDate")%>
</td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</table></FooterTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KTestConnectionString %>"
SelectCommand="SELECT LicenseID, LicenseName, StartDate, EndDate FROM Krish">
</asp:SqlDataSource>
【问题讨论】:
-
你需要重新写你的问题,你想做什么..到目前为止你尝试了什么..如果你遇到错误是什么
-
Devraj 谢谢你的帮助
标签: asp.net vb.net panel repeater