ASP.NET Page /PracticeTestStatus.aspx (C#)
Uses Code Behind Page Page /PracticeTestStatus.aspx.cs (C#)
1: <%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="True" Inherits="QuiznetOnline.Web.UI.Status" ValidateRequest="false" Codebehind="PracticeTestStatus.aspx.cs" %>  
2: <%@ PreviousPageType VirtualPath="~/PracticeTest.aspx" %>  
3: <%--<%@ Register Src="~/Controls/FaceBookEntry.ascx" TagName="Control" TagPrefix="ucFaceBookEntry" %>--%>  
4: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
5:   
6:   
7: <script language="javascript" src="Include/jquery.js"></script>  
8: <script  type='text/javascript'>  
9:     $(document).ready(function () {  
10:         $(".button").hover(function () {  
11:             $(this).attr("src", "/Images/SaveFaceBookHover.jpg");  
12:         }, function () {  
13:             $(this).attr("src", "/Images/SaveFaceBookNormal.jpg");  
14:         });  
15:     });  
16:   
17:     function SaveFav(questionID,checkBox) {  
18:         var hiddenUserName = document.getElementById("<%= hiddenUserName.ClientID %>");  
19:   
20:         $(document).ready(function () {  
21:             $.ajax({  
22:                 type: "POST",  
23:                 contentType: "application/json; charset=utf-8",  
24:                 url: "WebServices/GetUser.asmx/AddRemoveFavorite",  
25:                 data: "{userName:'" + hiddenUserName.value + "',QuestionID:" + questionID + ",IsRemoveFavourite:" + checkBox.checked + "}",  
26:                 dataType: "json",  
27:                 success: function (response) {  
28:                 },  
29:                 failure: function (msg) {  
30:                     $('#output').text(msg);  
31:                 }  
32:             });  
33:         })  
34:     }  
35: </script>  
36:   
37: <asp:HiddenField runat="server" ID="hiddenUserName"/>  
38: <table width="100%" align="center" cellpadding="5">  
39: <tr>  
40:     <td valign ="top">  
41:         <table class="InnerTable" width="100%" border="0" align="center">  
42:             <tr valign="top">  
43:                 <td align="center">Practice test results for : <asp:Label ID="lblTestType" runat="server"></asp:Label></td>  
44:             </tr>  
45:             <tr valign="top" align="right">  
46:                 <td>Questions Correct : <asp:Label ID="lblCorrect" runat="server"></asp:Label></td>  
47:             </tr>                
48:             <tr valign="top" align="right">  
49:                 <td>Questions Incorrect : <asp:Label ID="lblIncorrect" runat="server"></asp:Label></td>  
50:             </tr>              
51:   
52:             <asp:Panel runat="server" ID="panelIsGuest">  
53:                 <tr>  
54:                     <td valign = "top">  
55:                         <asp:Table HorizontalAlign="Center" CellSpacing="2" GridLines="None" CellPadding="5" BorderColor="Blue" BorderStyle="Groove" BorderWidth="0" runat="server" ID="tblWeight" Visible="false" CssClass="Content_Table" Width="90%">  
56:                             <asp:TableRow runat="server" ID="TableRow1">  
57:                                 <asp:TableCell ID="TableCell3" runat="server" ColumnSpan="3" HorizontalAlign="Center"><asp:Label ID="Label1" CssClass="Incorrect_Font" runat="server" Text="Thank you for participating !!!"></asp:Label></asp:TableCell>  
58:                             </asp:TableRow>  
59:                             <asp:TableRow runat="server" ID="TableRow2">  
60:                                 <asp:TableCell ID="TableCell5" runat="server" ColumnSpan="3" HorizontalAlign="Center"><asp:Label ID="lblWeight" runat="server"></asp:Label></asp:TableCell>  
61:                             </asp:TableRow>  
62:                             <asp:TableRow runat="server" ID="rowRestrictedUser">  
63:                                 <asp:TableCell HorizontalAlign="left" ID="TableCell1" runat="server"><asp:HyperLink runat="server" ID="lblRestrictedUser" Font-Italic="true" Font-Size="10" Font-Bold="true"/></asp:TableCell>  
64:                             </asp:TableRow>  
65:                             <asp:TableRow runat="server" ID="TableRow3">  
66:                                 <asp:TableCell HorizontalAlign="left" ID="TableCell2" runat="server"><asp:HyperLink runat="server" ID="lblFeatures"/></asp:TableCell>  
67:                             </asp:TableRow>                                                        
68:                         </asp:Table>  
69:                     </td>  
70:                 </tr>  
71:                 <tr>  
72:                     <td></td>  
73:                 </tr>  
74:             </asp:Panel>  
75:   
76: <%--            <asp:Panel runat="server" Visible="false">  
77:             <tr>  
78:                 <td align="center">  
79:                     <ucFaceBookEntry:Control runat="server" ID="ucFaceBookEntry" width="100%" />  
80:                 </td>  
81:             </tr>  
82:             </asp:Panel>--%>  
83:   
84:             <tr>  
85:                 <td> </td>  
86:             </tr>    
87:                       
88:               
89:             <tr>  
90:                 <td valign = "top" align="center">  
91:                     <asp:Table HorizontalAlign="Center" CellSpacing="2" CellPadding="5" runat="server" ID="tblCorrect" CssClass="QuestionsCorrect_Table" Width="90%">  
92:                     </asp:Table>  
93:                 </td>  
94:             </tr>  
95:             <tr valign="top">  
96:                 <td> </td>  
97:             </tr>              
98:             <tr>  
99:                 <td valign = "top" align="center">  
100:                     <asp:Table HorizontalAlign="Center" CellSpacing="2" CellPadding="5" runat="server" ID="tblIncorrect" CssClass="QuestionsCorrect_Table" Width="90%">  
101:                     </asp:Table>  
102:                 </td>  
103:             </tr>              
104:         </table>  
105:     </td>  
106: </tr>  
107: </table>        
108:       
109: </asp:Content>  

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