For more information visit my site: New AspDotNet Concepts
Hai Friend Today I developed task using Repeater Control ,where user comment on the webpage the data is displayed below with the time.

Aspx code
- <body style="background-image: url('webdesign_1338484318_44.jpg')">
- <form id="form1" runat="server">
- <div align="center">
- <asp:Label ID="lblresults" runat="server" Text="" ForeColor="Red"></asp:Label>
- <h2 >Contact US</h2>
- <table>
- <tr>
- <td><b class="h1">Enter Name</b></td>
- <td>:</td>
- <td><asp:TextBox ID="txtname" runat="server" CssClass="h1" ToolTip="Enter Your Name"></asp:TextBox></td>
- </tr>
- <tr>
- <td><b class="h1">Enter Subject</b></td>
- <td>:</td>
- <td><asp:TextBox ID="txtsubject" runat="server" CssClass="h1" ToolTip="Enter Your Name"></asp:TextBox></td>
- </tr>
- <tr>
- <td><b class="h1">Enter Comments</b></td>
- <td>:</td>
- <td><asp:TextBox CssClass="h1" ID="txtcomments" runat="server" TextMode="MultiLine"
- ToolTip="Enter Your Name" Height="80px" style="margin-left: 0px"
- Width="212px"></asp:TextBox></td>
- </tr>
- <tr>
- <td>
- </td>
- <td></td>
- <td>
- <br />
- <asp:Button ID="btnsubmit" runat="server" Text="Submit" onclick="btnsubmit_Click" />
- </td>
- </tr>
- </table >
- </div>
- <div align="center">
- <asp:Repeater ID="repeaterdata" runat="server" >
- <HeaderTemplate>
- <table align="center">
- <tr>
- <td> <h3 class="h1">Comments</h3>
- </td>
- </tr>
- </table>
- </HeaderTemplate>
- <ItemTemplate>
- <table style="border=1px" >
- <tr>
- <td>
- <table border="1px" style="background-color:Orange">
- <table style="background-color:Orange" >
- <tr>
- <td>
- <asp:Label BackColor="Orange" ID="Label1" runat="server" Text='<%#Bind("sno") %>'></asp:Label> )
- <b>Subject</b> <asp:Label BackColor="Orange"ID="lblsubject"runat="server"Text='<%#Bind("subject") %>'></asp:Label> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <asp:Label ID="lblcomments" runat="server" Text='<%#Bind("comments") %>'></asp:Label>
- </td>
- </tr>
- <tr>
- <td>
- <table border="1px" style="background-color:Green">
- <tr>
- <td>
- Post By <asp:Label ID="lblpost"runat="server"Text='<%#Bind("username") %>'></asp:Label>
- </td>
- <td>
- Create Date : <asp:Label ID="lbldate" runat="server" Text='<%#Bind("postedDate") %>'></asp:Label>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:Repeater>
- </div>
- </form>
- </body>

Join the conversation! Your thoughts help the community grow.