ASP.NET Page /AddPracticeQuestion.aspx (C#)
Uses Code Behind Page Page /AddPracticeQuestion.aspx.cs (C#)
1: <%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" Inherits="QuiznetOnline.Web.UI.AddPracticeQuestion" validateRequest="false" Codebehind="AddPracticeQuestion.aspx.cs" %>  
2: <%@ MasterType VirtualPath="~/Master/MasterPage.master" %>  
3:   
4: <%@ Register  
5:     Assembly="AjaxControlToolkit"  
6:     Namespace="AjaxControlToolkit"  
7:     TagPrefix="ajaxToolkit" %>  
8:   
9:   
10: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
11:   
12: <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
13: <ContentTemplate>  
14:   
15:     <table class="Inner_Table" width="100%" border="0" align="center">  
16:     <tr valign="top">  
17:         <td colspan="2">  
18:             <asp:Label runat="server" ID="Label9" CssClass="Main_Menu_Font" Text="New Questions & Answers"/>  
19:             <asp:Label ID="Label10" runat="server" Font-Size="Smaller" Text="(Questions submitted are approved manually)"></asp:Label>  
20:         </td>  
21:         <td></td>  
22:         <td></td>  
23:     </tr>    
24:     <tr>  
25:         <td align="left" colspan="4"><asp:Label ID="lblStatusTop" runat="server" Text="" CssClass="Incorrect_Font"></asp:Label></td>  
26:     </tr>                                              
27:     <tr valign="top">  
28:                 <td colspan="2"><asp:Label runat="server" ID="lblRequired" CssClass="Incorrect_Font" Text="*(Required fields)"/></td>  
29:                 <td></td>  
30:         <td bgcolor="blue" align="center"><asp:Label ID="Label1" runat="server" Font-Bold="true" ForeColor="white">Example</asp:Label></td>  
31:     </tr>  
32:     <tr valign="top">  
33:         <td valign="middle" style="height: 156px"><asp:Label runat="server" ID="Label12" CssClass="Incorrect_Font" Text="*"/><asp:Label runat="server" ID="lbl1" CssClass="Small_AddQuestion_Font" Text="Question"/></td>  
34:         <td style="height: 156px"><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" id="txtquestion" Rows="3" runat="server" width="100%" MaxLength="1024" Height="186px"></asp:TextBox></td>  
35:         <td style="height: 156px">  
36:                     <asp:RequiredFieldValidator ID="RequiredFieldValidatorQuestion" runat="server"  
37:                         Display="Dynamic" ErrorMessage="Required" SetFocusOnError="True" ControlToValidate="txtquestion" EnableClientScript="false"></asp:RequiredFieldValidator> </td>  
38:         <td style="white-space:nowrap; height: 156px;" class="Comment_TextArea">"Which of the following is not a C# keyword?"</td>  
39:     </tr>  
40:     <tr>  
41:         <td></td>  
42:         <td></td>  
43:     </tr>                                  
44:     <tr valign="top">  
45:         <td valign="middle" style="white-space:nowrap"><asp:Label runat="server" ID="Label13" CssClass="Incorrect_Font" Text="*"/><asp:Label runat="server" ID="Label2" CssClass="Small_AddQuestion_Font" Text="Possible Answer:1"/></td>  
46:         <td width="99%"><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" runat="server" Rows="3" id="txtanswers1" width="100%" MaxLength="1024"></asp:TextBox></td>  
47:         <td>  
48:                     <asp:RequiredFieldValidator ID="RequiredFieldValidatorAnswers1" runat="server" Display="Dynamic"  
49:                         ErrorMessage="Required" SetFocusOnError="True" ControlToValidate="txtanswers1" EnableClientScript="false"></asp:RequiredFieldValidator></td>  
50:         <td valign="middle" class="Comment_TextArea">"if"</td>                              
51:     </tr>      
52:     <tr valign="top">  
53:         <td valign="middle"><asp:Label runat="server" ID="Label11" CssClass="Incorrect_Font" Text="*"/><asp:Label runat="server" ID="Label3" CssClass="Small_AddQuestion_Font" Text="Possible Answer:2"/></td>  
54:         <td><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" runat="server" Rows="3" id="txtanswers2" width="100%" MaxLength="1024"></asp:TextBox></td>  
55:         <td>  
56:                     <asp:RequiredFieldValidator ID="RequiredFieldValidatorAnswers2" runat="server" Display="Dynamic"  
57:                         ErrorMessage="Required" SetFocusOnError="True" ControlToValidate="txtanswers2" EnableClientScript="false"></asp:RequiredFieldValidator></td>  
58:         <td valign="middle" class="Comment_TextArea">"delegate"</td>                              
59:     </tr>      
60:     <tr valign="top">  
61:         <td valign="middle"><asp:Label runat="server" ID="Label4" CssClass="Small_AddQuestion_Font" Text="Possible Answer:3"/></td>  
62:         <td><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" runat="server" Rows="3" id="txtanswers3" width="100%" MaxLength="1024"></asp:TextBox></td>  
63:         <td></td>  
64:         <td valign="middle" class="Comment_TextArea">"private"</td>                              
65:     </tr>      
66:     <tr valign="top">  
67:         <td valign="middle"><asp:Label runat="server" ID="Label5" CssClass="Small_AddQuestion_Font" Text="Possible Answer:4"/></td>  
68:         <td><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" runat="server" Rows="3" id="txtanswers4" width="100%" MaxLength="1024"></asp:TextBox></td>  
69:         <td></td>  
70:         <td valign="middle" class="Comment_TextArea">"implements"</td>                              
71:     </tr>      
72:     <tr valign="top">  
73:         <td valign="middle"><asp:Label runat="server" ID="Label6" CssClass="Small_AddQuestion_Font" Text="Possible Answer:5"/></td>  
74:         <td><asp:TextBox CssClass="Small_Font_8pt" Textmode="Multiline" runat="server" Rows="3" id="txtanswers5" width="100%" MaxLength="1024"></asp:TextBox></td>  
75:         <td></td>  
76:         <td valign="middle" class="Comment_TextArea"></td>                              
77:     </tr>      
78:     <tr>  
79:         <td></td>  
80:         <td></td>  
81:     </tr>                          
82:     <tr valign="top">  
83:         <td valign="middle"><asp:Label runat="server" ID="Label14" CssClass="Incorrect_Font" Text="*"/><asp:Label runat="server" ID="Label7" CssClass="Small_AddQuestion_Font" Text="Correct Answer:"/></td>  
84:         <td>  
85:             <asp:DropDownList ID="cmbanswer" runat="server">  
86:                 <asp:ListItem Selected="True" Value="">Select the correct answer</asp:ListItem>  
87:                 <asp:ListItem Value="1">Answer:1</asp:ListItem>  
88:                 <asp:ListItem Value="2">Answer:2</asp:ListItem>  
89:                 <asp:ListItem Value="3">Answer:3</asp:ListItem>  
90:                 <asp:ListItem Value="4">Answer:4</asp:ListItem>  
91:                 <asp:ListItem Value="5">Answer:5</asp:ListItem>  
92:             </asp:DropDownList>  
93:         </td>  
94:         <td>  
95:                     <asp:RequiredFieldValidator ID="RequiredFieldValidatorAnswer" runat="server" Display="Dynamic"  
96:                         ErrorMessage="Required" SetFocusOnError="True" ControlToValidate="cmbanswer" EnableClientScript="false"></asp:RequiredFieldValidator></td>  
97:         <td class="Comment_TextArea">Answer 4</td>                              
98:     </tr>    
99:     <tr valign="top">  
100:         <td valign="middle"><asp:Label runat="server" ID="Label8" CssClass="Small_AddQuestion_Font" Text="Explaination"/></td>  
101:         <td valign="middle"><asp:TextBox CssClass="Small_Font_8pt" width="100%" Textmode="Multiline" runat="server" Rows="7" id="txtexplain" MaxLength="1020"></asp:TextBox></td>  
102:         <td></td>  
103:         <td valign="middle" class="Comment_TextArea">"Implements Statement is a Visual Basic statement"</td>                              
104:     </tr>  
105:     <tr>  
106:         <td colspan="2" align="center"><asp:Label ID="lblStatus" runat="server" Text="" CssClass="Incorrect_Font"></asp:Label></td>  
107:         <td></td>  
108:     </tr>                              
109:     <tr valign="top">  
110:         <td></td>  
111:         <td align="center" valign="middle"><asp:Button runat="server" id="cmdsubmit" Text="Save" OnClick="cmdsubmit_Click"/></td>  
112:     </tr>                                                                          
113:     </table>  
114:       
115:           
116:     <asp:Panel ID="panelQuestionSaved" runat="server" CssClass="modalPopup" Style="display: none">  
117:         <asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">  
118:             <div>  
119:                 <p><asp:Label runat="server" ID="lblQuestionStatus"></asp:Label></p>  
120:             </div>  
121:         </asp:Panel>  
122:         <p style="text-align: center;">  
123:             <asp:Button ID="OkButton" runat="server" Text="OK"/>  
124:         </p>          
125:     </asp:Panel>  
126:       
127:     <asp:Panel ID="panNoUser" runat="server" Style="display: none" CssClass="modalPopup">  
128:         <asp:Panel ID="panNoUserText" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">  
129:             <div>  
130:                 <asp:TextBox Width="100%" Rows="5" Font-Bold="true" runat="server" ID="lblNoUser" TextMode="MultiLine" Style="overflow :hidden" BorderStyle="None" BackColor="#DDDDDD" ReadOnly="true" ></asp:TextBox>  
131:             </div>  
132:         </asp:Panel>  
133:         <p style="text-align: center;">  
134:             <asp:Button ID="cmdMainMenu" runat="server" Text="OK" OnClick="cmdMainMenu_Click"/>  
135:         </p>          
136:     </asp:Panel>      
137:   
138:     <ajaxToolkit:ModalPopupExtender ID="ModalPopupNoUser" runat="server"  
139:         TargetControlID="cmdsubmit"  
140:         PopupControlID="panNoUser"  
141:         BackgroundCssClass="modalBackground"  
142:         DropShadow="true"  
143:         Enabled="false"  
144:         PopupDragHandleControlID="panNoUserText" />          
145:   
146:   
147:     <ajaxToolkit:ModalPopupExtender ID="PopupQuestionSaved" runat="server"  
148:         TargetControlID="cmdsubmit"  
149:         PopupControlID="panelQuestionSaved"  
150:         BackgroundCssClass="modalBackground"  
151: There is a limit of 150 source code lines in the evaluation version
152: There is a limit of 150 source code lines in the evaluation version
153: There is a limit of 150 source code lines in the evaluation version
154: There is a limit of 150 source code lines in the evaluation version
155: There is a limit of 150 source code lines in the evaluation version
156: There is a limit of 150 source code lines in the evaluation version
157: There is a limit of 150 source code lines in the evaluation version
158: There is a limit of 150 source code lines in the evaluation version
159: There is a limit of 150 source code lines in the evaluation version
160: There is a limit of 150 source code lines in the evaluation version
161: There is a limit of 150 source code lines in the evaluation version
162: There is a limit of 150 source code lines in the evaluation version
163: There is a limit of 150 source code lines in the evaluation version
164: There is a limit of 150 source code lines in the evaluation version
165: There is a limit of 150 source code lines in the evaluation version
166: There is a limit of 150 source code lines in the evaluation version
167: There is a limit of 150 source code lines in the evaluation version
168: There is a limit of 150 source code lines in the evaluation version
169: There is a limit of 150 source code lines in the evaluation version
170: There is a limit of 150 source code lines in the evaluation version
171: There is a limit of 150 source code lines in the evaluation version
172: There is a limit of 150 source code lines in the evaluation version
173: There is a limit of 150 source code lines in the evaluation version

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