ASP.NET Page /Admin/Default.aspx (C#)
Uses Code Behind Page Page /Admin/Default.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="QuiznetOnline.Web.UI.Admin.Admin_Default" validateRequest="false" Codebehind="Default.aspx.cs" %>  
2: <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>  
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>Admin default page</title>  
8:     <script src="../Include/jquery.js" type="text/javascript"></script>  
9: </head>  
10: <body>  
11:   
12: <script type="text/javascript">  
13:     function SelectAllCountries(checkObj) {  
14:         CheckUncheckAllCheckBoxes("#<%=cmbCountry.ClientID %>", checkObj.checked);  
15:     }  
16:   
17:     function CheckUncheckAllCheckBoxes(objID, checkedValue) {  
18:         if (objID == null || objID == undefined)  
19:             return;  
20:   
21:         $(objID + " input[type=checkbox]").each(function () {  
22:             this.checked = checkedValue;  
23:         });  
24:     }  
25: </script>  
26:   
27:     <form id="frm" runat="server">  
28:          <table border="1" align="center">  
29:     <tr>  
30:         <td>User ID</td>  
31:         <td><asp:TextBox runat="server" ID="txtUserID"></asp:TextBox></td>  
32:     </tr>  
33:     <tr>  
34:         <td>Password</td>  
35:         <td><asp:TextBox runat="server" ID="txtPassword" TextMode="Password"></asp:TextBox></td>  
36:     </tr>  
37:     <tr>  
38:         <td colspan="2" align="center"><asp:Button ID="cmdSubmit" runat="server" Text="Submit" OnClick="cmdSubmit_Click" /></td>  
39:     </tr>  
40:     </table>  
41:     <p></p>  
42:     <p></p>  
43:     <asp:Table id="tblMenu" runat="server" HorizontalAlign="Center" Visible="false">  
44:         <asp:TableRow ID="TableRow0" runat="server">  
45:             <asp:TableCell ID="TableCell0" runat="server"><asp:Button runat="server" ID="cmdAdmin" Text="Execute SQL" Width="200px" OnClick="cmdAdmin_Click"/></asp:TableCell>  
46:             <asp:TableCell ID="TableCell1" runat="server"><asp:Button runat="server" ID="cmdApproveQuestion" Text="Approve Questions" Width="200px" OnClick="cmdApproveQuestion_Click"/></asp:TableCell>  
47:             <asp:TableCell ID="TableCell2" runat="server"><asp:Button runat="server" ID="cmdQuestionsAnswers" Text="Questions/Answers" Width="200px" OnClick="cmdQuestionsAnswers_Click"/></asp:TableCell>  
48:             <asp:TableCell ID="TableCell26" runat="server"><asp:Button runat="server" ID="cmdUserFavourites" Text="User Favourites" Width="200px" OnClick="cmdUserFavourites_Click"/></asp:TableCell>  
49:         </asp:TableRow>  
50:         <asp:TableRow ID="TableRow15" runat="server">  
51:             <asp:TableCell ID="TableCell3" runat="server"><asp:Button runat="server" ID="cmdTableSequence" Text="Table Sequences" Width="200px" OnClick="cmdTableSequence_Click"/></asp:TableCell>  
52:             <asp:TableCell ID="TableCell25" runat="server"><asp:Button runat="server" ID="cmdFindQuestionAnswer" Text="Query Questions/Answers" Width="200px" OnClick="cmdFindQuestionAnswer_Click"/></asp:TableCell>  
53:             <asp:TableCell ID="TableCell5" runat="server"><asp:Button runat="server" ID="cmdContactUs" Text="Contact US" Width="200px" OnClick="cmdContactUs_Click"/></asp:TableCell>  
54:             <asp:TableCell ID="TableCell22" runat="server"><asp:Button runat="server" ID="cmdProfile" Text="Profile" Width="200px" OnClick="cmdProfile_Click"/></asp:TableCell>  
55:         </asp:TableRow>  
56:         <asp:TableRow ID="TableRow4" runat="server">  
57:             <asp:TableCell ID="TableCell4" runat="server"><asp:Button runat="server" ID="cmdUser" Text="Users" Width="200px" OnClick="cmdUser_Click"/></asp:TableCell>  
58:             <asp:TableCell ID="TableCell7" runat="server"><asp:Button runat="server" ID="cmdResults" Text="Results" Width="200px" OnClick="cmdResults_Click"/></asp:TableCell>  
59:             <asp:TableCell ID="TableCell23" runat="server"><asp:Button runat="server" ID="cmdUserSettings" Text="User Settings" Width="200px" OnClick="cmdUserSettings_Click"/></asp:TableCell>  
60:             <asp:TableCell ID="TableCell27" runat="server"><asp:Button runat="server" ID="Button1" Text="Send Correspondence" Width="200px" OnClick="cmdSendCorrespondence_Click"/></asp:TableCell>    
61:   
62:         </asp:TableRow>  
63:         <asp:TableRow ID="TableRow9" runat="server">  
64:             <asp:TableCell ID="TableCell19" runat="server"><asp:Button runat="server" ID="cmdErrors" Text="Errors" Width="200px" OnClick="cmdErrors_Click"/></asp:TableCell>  
65:             <asp:TableCell ID="TableCell8" runat="server"><asp:Button runat="server" ID="cmdClearLog" Text="Clear Errors & log " Width="200px" OnClick="cmdClearLog_Click" /></asp:TableCell>  
66:             <asp:TableCell ID="TableCell9" runat="server"><asp:Button runat="server" ID="cmdComments" Text="Comments" Width="200px" OnClick="cmdComments_Click"/></asp:TableCell>  
67:             <asp:TableCell ID="TableCell30" runat="server"><asp:Button runat="server" ID="cmdClearAllCache" Text="Clear All Cache" Width="200px" OnClick="cmdClearAllCache_Click"/></asp:TableCell>          
68:         </asp:TableRow>  
69:         <asp:TableRow ID="TableRow13" runat="server">  
70:             <asp:TableCell ID="TableCell24" runat="server"><asp:Button runat="server" ID="cmdQuestionRating" Text="Question ratings" Width="200px" OnClick="cmdQuestionRating_Click"/></asp:TableCell>  
71:             <asp:TableCell ID="TableCell28" runat="server"><asp:Button runat="server" ID="cmdViewLog" Text="View Log" Width="200px" OnClick="cmdViewLog_Click"/></asp:TableCell>  
72:             <asp:TableCell ID="TableCell29" runat="server"><asp:Button runat="server" ID="cmdJobs" Text="System Jobs" Width="200px" OnClick="cmdJobs_Click"/></asp:TableCell>  
73:             <asp:TableCell ID="TableCell34" runat="server"><asp:Button runat="server" ID="cmdClearCache" Text="Clear Cache" Width="200px" OnClick="cmdClearCache_Click"/></asp:TableCell>  
74:         </asp:TableRow>  
75:         <asp:TableRow ID="TableRow2" runat="server">  
76:             <asp:TableCell ID="TableCell31" runat="server"><asp:Button runat="server" ID="cmdNewsletter" Text="News Letter" Width="200px" OnClick="cmdNewsletter_Click"/></asp:TableCell>  
77:             <asp:TableCell ID="TableCell32" runat="server"><asp:Button runat="server" ID="cmdUserQuestionRating" Text="User Question Rating" Width="200px" OnClick="cmdUserQuestionRating_Click"/></asp:TableCell>  
78:             <asp:TableCell ID="TableCell33" runat="server"><asp:Button runat="server" ID="cmdQuestionPositioning" Text="Change Question Positions" Width="200px" OnClick="cmdQuestionPositioning_Click"/></asp:TableCell>  
79:             <asp:TableCell ID="TableCell35" runat="server"><asp:Button runat="server" ID="cmdSessionUsers" Text="Session Users" Width="200px" OnClick="cmdSessionUsers_Click"/></asp:TableCell>  
80:         </asp:TableRow>      
81:   
82:         <asp:TableRow ID="TableRow5" runat="server">  
83:             <asp:TableCell ID="TableCell39" runat="server"><asp:Button runat="server" ID="cmdReports" Text="Reports" Width="200px" OnClick="cmdReports_Click"/></asp:TableCell>  
84:             <asp:TableCell ID="TableCell40" runat="server"><asp:Button runat="server" ID="cmdImpersonate" Text="Impersonate User" Width="200px" OnClick="cmdImpersonate_Click"/></asp:TableCell>  
85:             <asp:TableCell ID="TableCell37" runat="server"><asp:Button runat="server" ID="cmdQuestionRatingAuthor" Text="Author's question ratings" Width="200px" OnClick="cmdQuestionRatingAuthor_Click"/></asp:TableCell>  
86:             <asp:TableCell ID="TableCell38" runat="server"><asp:Button runat="server" ID="cmdAssignTagToQuestion" Text="Assign Tags to questions" Width="200px" OnClick="cmdAssignTagToQuestion_Click"/></asp:TableCell>  
87:         </asp:TableRow>  
88:   
89:         <asp:TableRow ID="TableRow3" runat="server">  
90:             <asp:TableCell ID="TableCell36" runat="server"><asp:Button runat="server" ID="cmdVideos" Text="Videos" Width="200px" OnClick="cmdVideos_Click"/></asp:TableCell>  
91:             <asp:TableCell ID="TableCell6" runat="server"><asp:Button runat="server" ID="cmdVirtualLabs" Text="Virtual Labs" Width="200px" OnClick="cmdVirtualLabs_Click"/></asp:TableCell>  
92:             <asp:TableCell ID="TableCell41" runat="server"><asp:Button runat="server" ID="cmdArticles" Text="Articles" Width="200px" OnClick="cmdArticles_Click"/></asp:TableCell>  
93:         </asp:TableRow>  
94:         </asp:Table>  
95:   
96:     <asp:Panel runat="server" ID="pnlAdminMessge" Visible="false">  
97:     <table border="0" align="center" width="100%">  
98:     <tr>  
99:         <td>  
100:             <table border="0" align="center" style="background-color:#E0E0E0">  
101:             <tr>  
102:                 <td>  
103:                     <table  border="0">  
104:                     <tr>  
105:                         <td align="center"><strong>Messages to users using there datetime</strong></td>  
106:                     </tr>  
107:                     <tr>  
108:                         <td>  
109:                             <asp:GridView ID="grdMessages" runat="server" EnableModelValidation="True"  
110:                                 OnRowCommand="grdMessages_RowCommand" onrowdeleting="grdMessages_RowDeleting">  
111:                                 <Columns>  
112:                                     <asp:ButtonField CommandName="Delete" HeaderText="Delete" ShowHeader="True"  
113:                                         Text="Delete" />  
114:                                 </Columns>  
115:                             </asp:GridView>  
116:                             <asp:Button ID="cmdDeleteAll" runat="server" Text="Delete All"  
117:                                 onclick="cmdDeleteAll_Click" />  
118:                         </td>  
119:                     </tr>  
120:                     <tr>  
121:                         <td>  
122:                             <table border="1">  
123:                             <tr>  
124:                                 <td></td>  
125:                                 <td align="center" valign="bottom">Start Date</asp:TextBox></td>  
126:                                 <td align="center" valign="bottom">End Date</asp:TextBox></td>  
127:                             </tr>  
128:                             <tr>  
129:                                 <td>  
130:                                     <table border="1">  
131:                                     <tr>  
132:                                         <td>  
133:                                             <DIV style="OVERFLOW-Y:scroll; HEIGHT:150px">  
134:                                                 <asp:CheckBoxList ID="cmbCountry" runat="server" Height="40px"/>  
135:                                             </DIV>  
136:                                         </td>  
137:                                         <td valign="top"><input type="checkbox" ID="butSelectAllCountries" name="butSelectAllCountries" onclick="SelectAllCountries(this)" />Select All countries</td>  
138:                                     </tr>  
139:                                     </table>  
140:                                 </td>  
141:   
142:                                 <td align="center" valign="top">  
143:                                     <asp:TextBox ID="txtStartMessageDate" runat="server"></asp:TextBox>  
144:                                 </td>  
145:                                 <td align="center" valign="top">  
146:                                     <asp:TextBox ID="txtEndMessageDate" runat="server"></asp:TextBox>  
147:                                 </td>  
148:                             </tr>  
149:                             </table>  
150:                         </td>  
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
174: There is a limit of 150 source code lines in the evaluation version
175: There is a limit of 150 source code lines in the evaluation version
176: There is a limit of 150 source code lines in the evaluation version
177: There is a limit of 150 source code lines in the evaluation version
178: There is a limit of 150 source code lines in the evaluation version
179: There is a limit of 150 source code lines in the evaluation version
180: There is a limit of 150 source code lines in the evaluation version
181: There is a limit of 150 source code lines in the evaluation version
182: There is a limit of 150 source code lines in the evaluation version
183: There is a limit of 150 source code lines in the evaluation version
184: There is a limit of 150 source code lines in the evaluation version
185: There is a limit of 150 source code lines in the evaluation version
186: There is a limit of 150 source code lines in the evaluation version
187: There is a limit of 150 source code lines in the evaluation version
188: There is a limit of 150 source code lines in the evaluation version
189: There is a limit of 150 source code lines in the evaluation version
190: There is a limit of 150 source code lines in the evaluation version
191: There is a limit of 150 source code lines in the evaluation version
192: There is a limit of 150 source code lines in the evaluation version
193: There is a limit of 150 source code lines in the evaluation version
194: There is a limit of 150 source code lines in the evaluation version
195: There is a limit of 150 source code lines in the evaluation version
196: There is a limit of 150 source code lines in the evaluation version
197: There is a limit of 150 source code lines in the evaluation version
198: There is a limit of 150 source code lines in the evaluation version
199: There is a limit of 150 source code lines in the evaluation version
200: There is a limit of 150 source code lines in the evaluation version
201: There is a limit of 150 source code lines in the evaluation version
202: There is a limit of 150 source code lines in the evaluation version
203: There is a limit of 150 source code lines in the evaluation version
204: There is a limit of 150 source code lines in the evaluation version
205: There is a limit of 150 source code lines in the evaluation version
206: There is a limit of 150 source code lines in the evaluation version
207: There is a limit of 150 source code lines in the evaluation version
208: There is a limit of 150 source code lines in the evaluation version
209: There is a limit of 150 source code lines in the evaluation version
210: There is a limit of 150 source code lines in the evaluation version
211: There is a limit of 150 source code lines in the evaluation version
212: There is a limit of 150 source code lines in the evaluation version
213: There is a limit of 150 source code lines in the evaluation version
214: There is a limit of 150 source code lines in the evaluation version
215: There is a limit of 150 source code lines in the evaluation version
216: There is a limit of 150 source code lines in the evaluation version
217: There is a limit of 150 source code lines in the evaluation version
218: There is a limit of 150 source code lines in the evaluation version
219: There is a limit of 150 source code lines in the evaluation version
220: There is a limit of 150 source code lines in the evaluation version
221: There is a limit of 150 source code lines in the evaluation version
222: There is a limit of 150 source code lines in the evaluation version
223: There is a limit of 150 source code lines in the evaluation version
224: There is a limit of 150 source code lines in the evaluation version
225: There is a limit of 150 source code lines in the evaluation version
226: There is a limit of 150 source code lines in the evaluation version
227: There is a limit of 150 source code lines in the evaluation version
228: There is a limit of 150 source code lines in the evaluation version
229: There is a limit of 150 source code lines in the evaluation version
230: There is a limit of 150 source code lines in the evaluation version
231: There is a limit of 150 source code lines in the evaluation version
232: There is a limit of 150 source code lines in the evaluation version
233: There is a limit of 150 source code lines in the evaluation version
234: There is a limit of 150 source code lines in the evaluation version
235: There is a limit of 150 source code lines in the evaluation version
236: There is a limit of 150 source code lines in the evaluation version
237: There is a limit of 150 source code lines in the evaluation version
238: There is a limit of 150 source code lines in the evaluation version
239: There is a limit of 150 source code lines in the evaluation version
240: There is a limit of 150 source code lines in the evaluation version
241: There is a limit of 150 source code lines in the evaluation version
242: There is a limit of 150 source code lines in the evaluation version

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