ASP.NET Page /PracticalPhysics/Default.aspx (C#)
Uses Code Behind Page Page /PracticalPhysics/Default.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="QuiznetOnline.Web.UI.PracticalPhysics_Default" %>  
2:   
3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
4:   
5:   
6: <html xmlns="http://www.w3.org/1999/xhtml">  
7: <head runat="server">  
8:     <title></title>  
9:     <link rel="icon" href="/images/favicon.ico" type="image/x-icon" />  
10:             <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.24/themes/base/jquery-ui.css" type="text/css" media="all" />  
11:             <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />  
12:             <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>  
13:             <script src="http://code.jquery.com/ui/1.8.24/jquery-ui.min.js" type="text/javascript"></script>  
14:             <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>  
15:             <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>  
16:   
17: </head>  
18:   
19: <script type="text/javascript">  
20:     $(function () {  
21:         $("#startdatepicker").datepicker();  
22:         $.datepicker.setDefaults($.datepicker.regional['']);  
23:         $("#enddatepicker").datepicker();  
24:         $.datepicker.setDefaults($.datepicker.regional['']);  
25:     });  
26: </script>  
27:   
28: <body>  
29:     <form id="form1" runat="server">  
30:     <div>  
31:         <table border="0" width="50%">  
32:             <tr>  
33:                 <td>  
34:                     <asp:Panel runat="server" ID="panelLogin">  
35:                         <table border="1" width="30%" cellpadding="5" cellspacing="5">  
36:                         <tr>  
37:                             <td width="25%">Username</td><td><asp:TextBox runat="server" ID="txtUserName" Width="100%"/></td>  
38:                         </tr>  
39:                         <tr>  
40:                             <td>Password</td><td><asp:TextBox TextMode="Password" runat="server" ID="txtPassword" Width="100%"/></td>  
41:                         </tr>  
42:                         <tr>  
43:                             <td align="center" colspan="2"><asp:Button ID="btnLogin" runat="server" Text="Login"  
44:                                     onclick="btnLogin_Click" /></td>  
45:                         </tr>  
46:                         <tr>  
47:                             <td colspan="2"><asp:Label runat="server" id="lblStatus" BackColor="Red" /></td>  
48:                         </tr>  
49:                         </table>  
50:                     </asp:Panel>  
51:                 </td>  
52:             </tr>  
53:             <tr>  
54:                 <td>  
55:                     <asp:Panel runat="server" ID="panelMain" Visible="false">  
56:                         <table border="0">  
57:                         <tr>  
58:                             <td valign="top">  
59:                                 <table border="1" cellpadding="3" cellspacing="3">  
60:                                 <tr>  
61:                                     <td>Serial Number</td><td><asp:TextBox runat="server" ID="txtSerialNumber"/></td>  
62:                                 </tr>  
63:   
64:                                 <tr>  
65:                                     <td>Products</td><td><asp:DropDownList runat="server" ID="lstProducts"/></td>  
66:                                 </tr>  
67:                                       
68:                                 <tr><td></td></tr>  
69:   
70:                                 <tr>  
71:                                     <div class="demo">  
72:                                         <td colspan="2">  
73:                                             <table>  
74:                                             <tr>  
75:                                                 <td>Start Date <input type="text" id="startdatepicker" runat="server"/></td>  
76:                                                 <td>End Date <input type="text" id="enddatepicker" runat="server"/></td>  
77:                                             </tr>  
78:                                             </table>  
79:                                         </td>  
80:                                     </div>  
81:                                 </tr>  
82:   
83:               
84:                                 <tr>  
85:                                     <td align="center" colspan="2"><asp:Button ID="btnSubmit" runat="server" Text="Submit"  
86:                                             onclick="btnSubmit_Click" /></td>  
87:                                 </tr>  
88:                                 </table>  
89:                             </td>  
90:                             <td valign="top">  
91:                                 <table border="1">  
92:                                 <tr>  
93:                                     <td>  
94:                                         <asp:GridView runat="server" ID="grdFiles" AutoGenerateColumns="False"  
95:                                             CellPadding="4" EmptyDataText="No files found" ForeColor="#333333"  
96:                                             GridLines="None" onrowdeleting="grdFiles_RowDeleting">  
97:                                             <AlternatingRowStyle BackColor="White" />  
98:                                         <Columns>  
99:                                             <asp:TemplateField HeaderText="Delete">  
100:                                                 <ItemTemplate>  
101:                                                         <asp:Button ID="deleteButton" runat="server" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Are you sure you want to delete?');" />  
102:                                                 </ItemTemplate>  
103:                                             </asp:TemplateField>  
104:                                             <asp:TemplateField HeaderText="Delete">  
105:                                                 <ItemTemplate>  
106:                                                     <asp:TextBox ID="txtwindowsLocation" runat="server" Text='<%# Bind("windowsLocation")%>' Visible="false"/>  
107:                                                 </ItemTemplate>  
108:                                             </asp:TemplateField>  
109:                                             <asp:TemplateField HeaderText="File Extracts">  
110:                                                 <ItemTemplate>  
111:                                                     <asp:HyperLink ID="hyperFile" runat="server" NavigateUrl='<%# Bind("fullFileName")%>' Text='<%# Bind("fileName")%>'></asp:HyperLink>  
112:                                                 </ItemTemplate>  
113:                                             </asp:TemplateField>  
114:                                         </Columns>  
115:                                             <EditRowStyle BackColor="#2461BF" />  
116:                                             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
117:                                             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
118:                                             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />  
119:                                             <RowStyle BackColor="#EFF3FB" />  
120:                                             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />  
121:                                             <SortedAscendingCellStyle BackColor="#F5F7FB" />  
122:                                             <SortedAscendingHeaderStyle BackColor="#6D95E1" />  
123:                                             <SortedDescendingCellStyle BackColor="#E9EBEF" />  
124:                                             <SortedDescendingHeaderStyle BackColor="#4870BE" />  
125:                                         </asp:GridView>  
126:                                     </td>  
127:                                 </tr>  
128:                                 </table>  
129:                             </td>  
130:                         </tr>  
131:                         </table>  
132:                     </asp:Panel>  
133:                 </td>  
134:             </tr>  
135:         </table>  
136:     </div>  
137:     </form>  
138: </body>  
139: </html>  

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