我想在3tier中显示注释代码. [英] I want to display the code for comments in 3tier.
本文介绍了我想在3tier中显示注释代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的专家,
请帮助此apx.cs代码...
我累了很多,但没有展示..
Dis是我的设计代码..
源代码:
Dear Experts,
Plz help for this apx.cs code...
I tired alot but not displaying..
Dis is my Design code..
source code:
<tr>
<td>
Comments:</td>
<td>
</td>
<tr>
<td>
<asp:TextBox ID="txtComment" runat="server" Height="63px" TextMode="MultiLine"
Width="278px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblComment" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnComment" runat="server" onclick="btnComment_Click"
Text="Comment It" />
</td>
</tr>
</tr>
<asp:Repeater ID="RPComments" runat="server">
<HeaderTemplate>
<table cellpadding="0" style=" border:1px solid #df5015; width:300px">
<tr style="background-color:#df5015; color:White">
<td colspan="2">
<b>Post Comments</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table>
<tr style="background-color:#EBEFF0">
<td>
<table style="background-color:#EBEFF0;border-top:1px dotted #df5015; width:300px">
<tr>
<td>
<%-- <asp:HyperLink ID="hyperSponsor0" runat="server"
NavigateUrl='<%#"../User/ProfilePage.aspx?Id=" +DataBinder.Eval(Container.DataItem, "UserID").ToString()+"&Name="+DataBinder.Eval(Container.DataItem,"CommentBy").ToString()+" "%>'>
<asp:Image runat="server" ImageUrl='<%#Eval("Image")%>' ID="imgSponsor3"
title='<%#Eval("CommentBy")%>' Width="50px" Height="50px"/>
</asp:HyperLink>--%>
</td>
<td>
<asp:Label ID="lblComment" runat="server" Text='<%#Eval("Comments") %>' />
<br />
<%--<asp:label id="timeago" runat="server" Text='<%#Eval("CommentDate") %>' ForeColor="Blue" />--%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</table>
pz帮助我.cs代码..
pz help me .cs code..
推荐答案
^ ]
http://jawedm.blogspot.in/2011/02/post-comments-web-page-in-aspnet-using.html [
http://v4.aspnettutorials.com/web-forms/asp-net-forums-website-part-4-adding-the-post-page/[^]
http://jawedm.blogspot.in/2011/02/post-comments-web-page-in-aspnet-using.html[^]
这篇关于我想在3tier中显示注释代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文