ASP.NET Page /Default.aspx (C#)
Uses Code Behind Page Page /Default.aspx.cs (C#)
1: <%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="True" EnableSessionState="True" Inherits="QuiznetOnline.Web.UI.Default" EnableEventValidation="false" Codebehind="Default.aspx.cs" %>  
2: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
3: <%@ Register Src="~/Controls/ResultsView.ascx" TagName="Control" TagPrefix="ucViewResults" %>  
4: <%@ MasterType VirtualPath="~/Master/MasterPage.master" %>  
5:   
6: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
7:   
8:   
9:   
10: <script type="text/javascript">  
11:   
12:     function ShowAdditionalOptions(quizButton) {  
13:         var hiddenQuiz = document.getElementById("<%= hiddenQuiz.ClientID %>");  
14:         var hiddenUserName = document.getElementById("<%= hiddenUserName.ClientID %>");  
15:   
16:   
17:         if (quizButton.id.toLowerCase().indexOf("csharp") >= 0) {  
18:             hiddenQuiz.value = "csharp";  
19:         }  
20:         else if (quizButton.id.toLowerCase().indexOf("asp") >= 0) {  
21:             hiddenQuiz.value = "aspnet";  
22:         }  
23:         else if (quizButton.id.toLowerCase().indexOf("sql") >= 0) {  
24:             hiddenQuiz.value = "sql";  
25:         }  
26:         else if (quizButton.id.toLowerCase().indexOf("framework") >= 0) {  
27:             hiddenQuiz.value = "netframework";  
28:         }  
29:         else if (quizButton.id.toLowerCase().indexOf("all") >= 0) {  
30:             hiddenQuiz.value = "all";  
31:         }  
32:   
33:         var modalPopupBehavior = $find('ModalBehaviourAdditionalOptions');  
34:         if (hiddenUserName.value.toLowerCase().indexOf("guest@quiznetonline.com") < 0) {  
35:             ShowHideTags(hiddenQuiz.value,'csharpcode','divcsharpcode');  
36:             modalPopupBehavior.show();  
37:             return false;  
38:         }  
39:         else {  
40:             modalPopupBehavior.hide();  
41:             return true;  
42:         }  
43:     }  
44:   
45:     function ShowHideTags(topicCode,tagValue,tagPanelID) {  
46:         $(document).ready(function () {  
47:             $.ajax({  
48:                 type: "POST",  
49:                 contentType: "application/json; charset=utf-8",  
50:                 url: "WebServices/Quiz.asmx/GetTagTopics",  
51:                 data: "{tagDesc:'" + tagValue + "'}",  
52:                 dataType: "json",  
53:                 success: function (response) {  
54:                     var topics = response.d  
55:   
56:                     for (var i = 0; i < topics.length; i++) {  
57:                         if (topicCode == topics[i].TopicCode) {  
58:                             var divTagType = document.getElementById("div" + topicCode + "TagType")  
59:                            // divTagType.visibility = 'visible';  
60:                             divTagType.style.display = '';  
61:                         }  
62:                     }  
63:                 },  
64:                 failure: function (msg) {  
65:                     $('#output').text(msg);  
66:                 }  
67:             });  
68:         })  
69:     }  
70:   
71:     function PanelLoadQuizVisibility(ChkBox) {  
72:         var hiddenAdditionalOptions = document.getElementById("<%= hiddenAdditionalOptions.ClientID %>");  
73:         hiddenAdditionalOptions.value = ($('input:radio[name=chkAdditionalOptions]:checked').val());  
74:   
75:         var hiddenTagOptions = document.getElementById("<%= hiddenTagOptions.ClientID %>");  
76:         if (hiddenTagOptions.value == "") {  
77:             hiddenTagOptions.value == "normal";  
78:         }  
79:     }  
80:   
81:     function RadioTagProcess(ChkBox) {  
82:         var hiddenTagOptions = document.getElementById("<%= hiddenTagOptions.ClientID %>");  
83:         hiddenTagOptions.value = ($('input:radio[name=chkTagOptions]:checked').val());  
84:   
85:         var hiddenAdditionalOptions = document.getElementById("<%= hiddenAdditionalOptions.ClientID %>");  
86:         if (hiddenAdditionalOptions.value == "") {  
87:             hiddenAdditionalOptions.value == "normal";  
88:         }  
89:     }  
90: </script>  
91:   
92: <!-- tooltip styling -->  
93: <style>  
94: /* style the trigger elements */  
95: #divRandom img {  
96:     border:0;  
97:     cursor:pointer;  
98:     margin:0 8px;  
99: }  
100:   
101: </style>  
102:   
103: <asp:HiddenField runat="server" ID="hiddenQuiz" />  
104: <asp:HiddenField runat="server" ID="hiddenAdditionalOptions" Value="normal" />  
105: <asp:HiddenField runat="server" ID="hiddenTagOptions" Value="normal" />  
106: <asp:HiddenField runat="server" ID="hiddenUserName"/>  
107:   
108: <table width="100%" border="0">            
109:     <tr>  
110:         <td>  
111:             <table class="Content_Table" border="0" align="center" cellpadding="5" width="100%">  
112:             <tr valign="top">  
113:                     <td align="left" colspan="3">  
114:                             <ul>  
115:                                     <li class="Small_Font_8pt" style="color:Black">Allows developers who specialize in Microsoft technologies to participate in online practice tests</li>  
116:                                     <li class="Small_Font_8pt" style="color:Black">Allow users to submit questions and answers in the form of multiple choice and true and false questions.</li>  
117:                                     <li class="Small_Font_8pt" style="color:Black">Contains multiple tests that can be anything related to Information Technology</li>  
118:                                     <li class="Small_Font_8pt" style="color:Black">The concept is that the questions and answers is maintained by any users of this site.</li>  
119:                                     <li class="Small_Font_8pt" style="color:Black">View your past scores.</li>  
120:                                     <asp:Panel runat="server" ID="pnlFeatureAccess">  
121:                                         <li class="Small_Font_8pt" style="color:Black"><asp:Label runat="server" ID="lblFeatureAccess"></asp:Label></li>  
122:                                     </asp:Panel>  
123:                                     <li class="Small_Font_8pt" style="color:Black">Registered users can create their own quiz</li>  
124:                                     <li class="Small_Font_8pt" style="color:Black">Users can view <a href="ViewQuestionsCompleted.aspx">other tests</a> currently being taken</li>  
125:                             </ul>                                      
126:                     </td>  
127:             </tr>  
128:             <asp:Panel runat="server" Visible="false" ID="pnlAdminMessage">  
129:             <tr>  
130:                 <td colspan="3">  
131:                     <table border="0" align="center">  
132:                     <tr>  
133:                         <td align="center"><asp:Label runat="server" ID="lblAdminMessage"></asp:Label></td>  
134:                     </tr>  
135:                     </table>  
136:                 </td>  
137:             </tr>  
138:             </asp:Panel>  
139:             <tr>  
140:                 <td valign="top" width="23%">  
141:                     <table class="Comment_TextArea" border="0" align="center" cellpadding="5" width="100%">  
142:                         <hr/><center><asp:Label ID="lblAvailable" runat="server" Text="Available Tests" CssClass="RelatedArticle_Font"></asp:Label></center><hr/>  
143:                         <tr>  
144:                             <td align="center" colspan="2"><asp:Label ID="Label1" runat="server" Text="Choose a test below" CssClass="Small_Font_8pt"></asp:Label></td>  
145:                         </tr>  
146:                           
147:                         <tr>  
148:                             <td align="center">  
149:                                 <asp:Button runat="server" ID="cmdcsharp"  OnClientClick="return ShowAdditionalOptions(this)" OnClick="cmdcsharp_Click" Text="C# Test" Width="132px" Font-Bold="true" />  
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
243: There is a limit of 150 source code lines in the evaluation version
244: There is a limit of 150 source code lines in the evaluation version
245: There is a limit of 150 source code lines in the evaluation version
246: There is a limit of 150 source code lines in the evaluation version
247: There is a limit of 150 source code lines in the evaluation version
248: There is a limit of 150 source code lines in the evaluation version
249: There is a limit of 150 source code lines in the evaluation version
250: There is a limit of 150 source code lines in the evaluation version
251: There is a limit of 150 source code lines in the evaluation version
252: There is a limit of 150 source code lines in the evaluation version
253: There is a limit of 150 source code lines in the evaluation version
254: There is a limit of 150 source code lines in the evaluation version
255: There is a limit of 150 source code lines in the evaluation version
256: There is a limit of 150 source code lines in the evaluation version
257: There is a limit of 150 source code lines in the evaluation version
258: There is a limit of 150 source code lines in the evaluation version
259: There is a limit of 150 source code lines in the evaluation version
260: There is a limit of 150 source code lines in the evaluation version
261: There is a limit of 150 source code lines in the evaluation version
262: There is a limit of 150 source code lines in the evaluation version
263: There is a limit of 150 source code lines in the evaluation version
264: There is a limit of 150 source code lines in the evaluation version
265: There is a limit of 150 source code lines in the evaluation version
266: There is a limit of 150 source code lines in the evaluation version
267: There is a limit of 150 source code lines in the evaluation version
268: There is a limit of 150 source code lines in the evaluation version
269: There is a limit of 150 source code lines in the evaluation version
270: There is a limit of 150 source code lines in the evaluation version
271: There is a limit of 150 source code lines in the evaluation version
272: There is a limit of 150 source code lines in the evaluation version
273: There is a limit of 150 source code lines in the evaluation version
274: There is a limit of 150 source code lines in the evaluation version
275: There is a limit of 150 source code lines in the evaluation version
276: There is a limit of 150 source code lines in the evaluation version
277: There is a limit of 150 source code lines in the evaluation version
278: There is a limit of 150 source code lines in the evaluation version
279: There is a limit of 150 source code lines in the evaluation version
280: There is a limit of 150 source code lines in the evaluation version
281: There is a limit of 150 source code lines in the evaluation version
282: There is a limit of 150 source code lines in the evaluation version
283: There is a limit of 150 source code lines in the evaluation version
284: There is a limit of 150 source code lines in the evaluation version
285: There is a limit of 150 source code lines in the evaluation version
286: There is a limit of 150 source code lines in the evaluation version
287: There is a limit of 150 source code lines in the evaluation version
288: There is a limit of 150 source code lines in the evaluation version
289: There is a limit of 150 source code lines in the evaluation version
290: There is a limit of 150 source code lines in the evaluation version
291: There is a limit of 150 source code lines in the evaluation version
292: There is a limit of 150 source code lines in the evaluation version
293: There is a limit of 150 source code lines in the evaluation version
294: There is a limit of 150 source code lines in the evaluation version
295: There is a limit of 150 source code lines in the evaluation version
296: There is a limit of 150 source code lines in the evaluation version
297: There is a limit of 150 source code lines in the evaluation version
298: There is a limit of 150 source code lines in the evaluation version
299: There is a limit of 150 source code lines in the evaluation version
300: There is a limit of 150 source code lines in the evaluation version
301: There is a limit of 150 source code lines in the evaluation version
302: There is a limit of 150 source code lines in the evaluation version
303: There is a limit of 150 source code lines in the evaluation version
304: There is a limit of 150 source code lines in the evaluation version
305: There is a limit of 150 source code lines in the evaluation version
306: There is a limit of 150 source code lines in the evaluation version
307: There is a limit of 150 source code lines in the evaluation version
308: There is a limit of 150 source code lines in the evaluation version
309: There is a limit of 150 source code lines in the evaluation version
310: There is a limit of 150 source code lines in the evaluation version
311: There is a limit of 150 source code lines in the evaluation version
312: There is a limit of 150 source code lines in the evaluation version
313: There is a limit of 150 source code lines in the evaluation version
314: There is a limit of 150 source code lines in the evaluation version
315: There is a limit of 150 source code lines in the evaluation version
316: There is a limit of 150 source code lines in the evaluation version
317: There is a limit of 150 source code lines in the evaluation version
318: There is a limit of 150 source code lines in the evaluation version
319: There is a limit of 150 source code lines in the evaluation version
320: There is a limit of 150 source code lines in the evaluation version
321: There is a limit of 150 source code lines in the evaluation version
322: There is a limit of 150 source code lines in the evaluation version
323: There is a limit of 150 source code lines in the evaluation version
324: There is a limit of 150 source code lines in the evaluation version
325: There is a limit of 150 source code lines in the evaluation version
326: There is a limit of 150 source code lines in the evaluation version
327: There is a limit of 150 source code lines in the evaluation version
328: There is a limit of 150 source code lines in the evaluation version
329: There is a limit of 150 source code lines in the evaluation version
330: There is a limit of 150 source code lines in the evaluation version
331: There is a limit of 150 source code lines in the evaluation version
332: There is a limit of 150 source code lines in the evaluation version

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