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

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