ASP.NET Page /ViewQuestionsCompleted.aspx (C#)
Uses Code Behind Page Page /ViewQuestionsCompleted.aspx.cs (C#)
1: <%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="True" Inherits="QuiznetOnline.Web.UI.ViewQuestionsCompleted" Codebehind="ViewQuestionsCompleted.aspx.cs" %>  
2: <%@ MasterType VirtualPath="~/Master/MasterPage.master"%>  
3: <%@ Register Src="~/Controls/ViewQuestionsCompletedGrid.ascx" TagName="ViewQuestionsCompletedGrid" TagPrefix="uc" %>  
4: <%@ Register Src="~/Controls/ViewQuestionsCompletedMap.ascx" TagName="ViewQuestionsCompletedMap" TagPrefix="uc" %>  
5:   
6: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
7:   
8:   
9:   
10: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
11: <script type="text/javascript">  
12:     function UpdateNumberOfRecords() {  
13:         var aspnetForm = document.getElementById("aspnetForm");  
14:         var spanNumberOfRecords = document.getElementsByName("spanNumberOfRecords");  
15:         var cmbNumberOfRecords = document.getElementById("<%= cmbNumberOfRecords.ClientID %>");  
16:   
17:         var HiddenNumberOfRecords = document.getElementById("<%= HiddenNumberOfRecords.ClientID %>");  
18:         HiddenNumberOfRecords.value = cmbNumberOfRecords.options[cmbNumberOfRecords.selectedIndex].value;  
19:   
20:         aspnetForm.submit();  
21:   
22:     }  
23: </script>  
24:         <center>  
25:             <table >  
26:             <tr>  
27:                 <td>  
28:                     <font style="font-weight:bold;font-size: 12pt;">Refreshes every 30 seconds</font>  
29:                 </td>  
30:             </tr>  
31:             </table>  
32:         </center>  
33:   
34:     <asp:Timer runat="server" id="UpdateTimer" interval="30000" ontick="UpdateTimer_Tick"/>  
35:     <asp:HiddenField runat="server" ID="HiddenNumberOfRecords" Value="10" />  
36:   
37:     <label runat="server" id="lbl1">Number of results displayed</label>  
38:     <asp:DropDownList runat="server" ID="cmbNumberOfRecords" onchange="UpdateNumberOfRecords();">  
39:         <asp:ListItem Text="10" Value="10" />  
40:         <asp:ListItem Text="20" Value="20" />  
41:         <asp:ListItem Text="50" Value="50" />  
42:         <asp:ListItem Text="100" Value="100" />  
43:     </asp:DropDownList>  
44:       
45:     <asp:UpdatePanel runat="server" id="TimedPanel">  
46:         <Triggers>  
47:             <asp:AsyncPostBackTrigger controlid="UpdateTimer" eventname="Tick" />  
48:         </Triggers>  
49:         <ContentTemplate>  
50:             <ajaxtoolkit:tabcontainer ID="TabContainerFeeds" runat="server" ActiveTabIndex="0" Font-Bold="false" OnClientActiveTabChanged="initialize">  
51:                 <ajaxToolkit:TabPanel ID="TabViewQuestionsCompletedGrid" runat="server" HeaderText="Questions being answered">  
52:                     <ContentTemplate>  
53:                             <center>  
54:                             <uc:ViewQuestionsCompletedGrid runat="server" id="ucViewQuestionsCompletedGrid" />  
55:                             </center>  
56:                     </ContentTemplate>  
57:                 </ajaxToolkit:TabPanel>  
58:                 <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Location of users answering questions" Height="100%" Width="100%">  
59:                     <ContentTemplate>  
60:                             <center>  
61:                             <uc:ViewQuestionsCompletedMap runat="server" id="ucViewQuestionsCompletedMap" />  
62:                             </center>  
63:                     </ContentTemplate>  
64:                 </ajaxToolkit:TabPanel>  
65:             </ajaxtoolkit:tabcontainer>  
66:         </ContentTemplate>  
67:     </asp:UpdatePanel>  
68:   
69: </asp:Content>

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