asp.net中使用repeater的facebook评论框
我有一个中继器,它有两列,一列包含标签,另一列包含文本框 在文本框中输入数据时,它应显示为标签,并在同一行中显示另一个文本框。我收到一个文本框,但无法执行上述操作。请帮助我asp.net中使用repeater的facebook评论框,asp.net,row,repeater,facebook-comments,Asp.net,Row,Repeater,Facebook Comments,我有一个中继器,它有两列,一列包含标签,另一列包含文本框 在文本框中输入数据时,它应显示为标签,并在同一行中显示另一个文本框。我收到一个文本框,但无法执行上述操作。请帮助我 <asp:Repeater ID="RepDetails" runat="server" OnItemDataBound="RepDetails_ItemDataBound" > <HeaderTemplate> <table style="border: 0px so
<asp:Repeater ID="RepDetails" runat="server" OnItemDataBound="RepDetails_ItemDataBound" >
<HeaderTemplate>
<table style="border: 0px solid #df5015; width: 100%">
<tr style="background-color: White; color: White">
<td colspan="2">
<b>Atrributes</b>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="background-color: #EBEFF0; height: 50px;" >
<td >
<table style="background-color: #EBEFF0; border: 0px dotted #df5015; width: 100%; margin-bottom: 30px;">
<tr style="height: 20px;">
<td style="width: 30%">
<asp:Label ID="lblAttributeName" runat="server" Text='<%#Eval("AttirbuteName") %>' Font-Bold="true" /></td>
<td id="textboxId" style="width: 70%">
<asp:TextBox ID="txtAttributeNameDef" runat="server" ToolTip='<%#Eval("AttirbuteDefination") %>' Width="100%"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
分布
您可以这样使用中继器
<div class="detailBox">
<div class="titleBox">
<label>Comment Box</label>
<button type="button" class="close" aria-hidden="true">×</button>
</div>
<div class="commentBox">
<p class="taskDescription">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="actionBox">
<asp:Repeater ID="RepDetails" runat="server" >
<ItemTemplate>
<ul class="commentList" id="listchat">
<li>
<div class="commenterImage">
<img src="http://lorempixel.com/50/50/people/6" />
</div>
<div class="commentText">
<p class="">Hello this is a test comment.</p> <span class="date sub-text">on March 5th, 2014</span>
</div>
</li>
</ul>
</ItemTemplate>
</asp:Repeater>
<div class="form-inline" role="form">
<div class="form-group">
<input class="form-control" type="text" id="txtcomment" placeholder="Your comments" />
</div>
<div class="form-group">
<button class="btn btn-default" id="postcomment">Add</button>
</div>
</div>
</div>
</div>
评论框
&时代;
Lorem Ipsum只是印刷和排版行业的虚拟文本
-
您好,这是一篇测试评论。
2014年3月5日
添加
“不清楚”您的问题。让我知道它在哪里。我有一个中继器,它有两列一列包含标签,另一列包含文本框。在文本框中输入数据时,它应显示为带有输入数据的标签,并且文本框中的相同数据应清除。我收到一个文本框,但无法执行上述操作。请帮助我。与facebook评论框相同,请查看此评论box@user3588674非常感谢您,但是通过上面的提琴,它应该添加到上面的面板上例如,当回发时,注释会丢失。所有注释都应按行保存在数据库中。伙计,您需要将数据绑定到repeater,然后只有您才能得到结果。。。