ASP.NET Page /Admin/QuestionRatingAuthor.aspx (C#)
Uses Code Behind Page Page /Admin/QuestionRatingAuthor.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="QuestionRatingAuthor" Codebehind="QuestionRatingAuthor.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>Untitled Page</title>  
8: </head>  
9: <body>  
10:     <form id="form1" runat="server">  
11:         <asp:HyperLink ID="lblHome" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink><br />  
12:         <asp:ListBox runat="server" ID="cmbTopics"/><asp:Button runat="server"  
13:             ID="butChooseTopic" onclick="butChooseTopic_Click" Text="Select topic"/>    
14:             <asp:Button runat="server" ID="butSaveComments" onclick="butSaveComments_Click" Text="Save Ratings"/>  
15:   
16:   
17:         <asp:Repeater runat="server" ID="repeatQuestion" onitemdatabound="repeatQuestion_ItemDataBound">  
18:             <ItemTemplate>  
19:                 <asp:HiddenField runat="server" ID="hiddenQuestionID" Value='<%# DataBinder.Eval(Container.DataItem, "QuestionID") %>' />  
20:                 <asp:Table runat="server" ID="tbl" BackColor="AliceBlue" Width="100%">  
21:                 <asp:TableRow>  
22:                     <asp:TableCell BorderStyle="Solid" BorderWidth="2" BorderColor="Black">  
23:                         <table border="1" width="100%">  
24:                         <tr>  
25:                             <td width="100px"><asp:Label runat="server" ID="Label1" Text='Question: '></asp:Label><asp:Label runat="server" ID="Label11" Text='<%# DataBinder.Eval(Container.DataItem, "QuestionID") %>'/></td>  
26:                             <td align="left"><asp:Label runat="server" ID="lblQuestion" ForeColor="Black" Font-Bold="false" Text='<%# DataBinder.Eval(Container.DataItem, "QuestionDesc") %>' /></td>  
27:                         </tr>  
28:   
29:                         <tr>  
30:                             <td><asp:Label runat="server" ID="Label3" Text="Answer1: "></asp:Label></td>  
31:                             <td><asp:Label runat="server" ID="lblAnswer1" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
32:                         </tr>  
33:                         <tr>  
34:                             <td><asp:Label runat="server" ID="Label4" Text="Answer2: "></asp:Label></td>  
35:                             <td><asp:Label runat="server" ID="lblAnswer2" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
36:                         </tr>  
37:                         <tr>  
38:                             <td><asp:Label runat="server" ID="Label6" Text="Answer3: "></asp:Label></td>  
39:                             <td><asp:Label runat="server" ID="lblAnswer3" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
40:                         </tr>  
41:                         <tr>  
42:                             <td><asp:Label runat="server" ID="Label8" Text="Answer4: "></asp:Label></td>  
43:                             <td><asp:Label runat="server" ID="lblAnswer4" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
44:                         </tr>  
45:                         <tr>  
46:                             <td><asp:Label ID="Label10" runat="server" Text="Answer5: "></asp:Label></td>  
47:                             <td><asp:Label runat="server" ID="lblAnswer5" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
48:                         </tr>  
49:                         <tr>  
50:                             <td><asp:Label ID="Label13" runat="server" Text="Answer6: "></asp:Label></td>  
51:                             <td><asp:Label runat="server" ID="lblAnswer6" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
52:                         </tr>  
53:                         <tr>  
54:                             <td><asp:Label ID="Label15" runat="server" Text="Answer7: "></asp:Label></td>  
55:                             <td><asp:Label runat="server" ID="lblAnswer7" ForeColor="Black" Font-Bold="false"></asp:Label></td>  
56:                         </tr>  
57:                         <tr>  
58:                             <td><asp:Label ID="Label9" runat="server" Text="ANSWER: "></asp:Label></td>  
59:                             <td><asp:Label runat="server" ID="Label12" ForeColor="Black" Font-Bold="false" Text='<%# DataBinder.Eval(Container.DataItem, "Answer") %>'></asp:Label></td>  
60:                         </tr>  
61:                         <tr>  
62:                             <td><asp:Label runat="server" ID="Label2" Text="Rating: "></asp:Label></td>  
63:                             <td><asp:Textbox runat="server" ID="lblRating" ForeColor="Black" Font-Bold="false" Text=""/>   Comments:<asp:Textbox runat="server" ID="txtComments" ForeColor="Black" Font-Bold="false" Text="" Width="800px"/></td>  
64:                         </tr>  
65:                         <tr>  
66:                             <td><asp:Label runat="server" ID="Label5" Text="Explaination: "></asp:Label></td>  
67:                             <td><asp:Label runat="server" ID="lblExplaination" ForeColor="Black" Font-Bold="false" Text='<%# DataBinder.Eval(Container.DataItem, "Explaination") %>'></asp:Label></td>  
68:                         </tr>  
69:                         <tr>  
70:                             <td><asp:Label runat="server" ID="Label7" Text="Link: "></asp:Label></td>  
71:                             <td><asp:HyperLink runat="server" ID="hypLink" Target="_blank" ForeColor="Black" Font-Bold="false" Text='<%# DataBinder.Eval(Container.DataItem, "Link") %>'></asp:HyperLink></td>  
72:                         </tr>  
73:                         </table>  
74:                     </asp:TableCell>  
75:                 </asp:TableRow>    
76:                 </asp:Table>  
77:             </ItemTemplate>  
78:         </asp:Repeater>  
79:     </form>  
80: </body>  
81: </html>  

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