ASP.NET Page /Comments.aspx (C#)
Uses Code Behind Page Page /Comments.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="True" Inherits="QuiznetOnline.Web.UI.CommentsPage" Codebehind="Comments.aspx.cs" %>  
2:   
3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
4:   
5: <html xmlns="http://www.w3.org/1999/xhtml" >  
6: <head runat="server">  
7:     <title>QuizNet Online - Comments about QuizNet Online</title>  
8: </head>  
9: <body>  
10:     <form id="form1" runat="server">  
11:     <div>  
12:         <asp:HyperLink ID="lblHome" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink><br />  
13:         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CommmentID"  
14:             DataSourceID="SqlDataSource1">  
15:             <Columns>  
16:                 <asp:BoundField DataField="CommmentID" HeaderText="CommmentID" ReadOnly="True" SortExpression="CommmentID" />  
17:                 <asp:BoundField DataField="CommentDateTime" HeaderText="CommentDateTime" SortExpression="CommentDateTime" />  
18:                 <asp:BoundField DataField="QuestionID" HeaderText="QuestionID" SortExpression="QuestionID" />  
19:                 <asp:BoundField DataField="Comment" HeaderText="Comment" SortExpression="Comment" />  
20:             </Columns>  
21:         </asp:GridView>  
22:         <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
23:             SelectCommand="SELECT * FROM [Comments] ORDER BY [CommmentID]"></asp:SqlDataSource>  
24:       
25:     </div>  
26:     </form>  
27:   
28:     <script type="text/javascript">  
29:     _uacct = "UA-1195564-1";  
30:     urchinTracker();  
31:     </script>          
32: </body>  
33: </html>  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.