SetupWizard.aspx
上传用户:zhuzg88
上传日期:2018-04-24
资源大小:868k
文件大小:10k
源码类别:

SilverLight

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SetupWizard.aspx.cs" Inherits="SetupWizard" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head id="Head1" runat="server">
  5.     <title>SilverlightDesktop Set-up Wizard</title>
  6.     <style type="text/css">
  7.         .style1
  8.         {
  9.             text-align: right;
  10.             width: 138px;
  11.         }
  12.     </style>
  13. </head>
  14. <body>
  15.     <form id="form1" runat="server">
  16.     <div>
  17.         <h1>
  18.             <img alt="SilverlightDesktop.net" src="images/SilverlightDesktop_small.gif" style="width: 264px;
  19.                 height: 122px" /></h1>
  20.     </div>
  21.     <asp:Panel ID="pnlWizard" runat="server" BackColor="#CCCCFF" BorderColor="#0033CC"
  22.         BorderStyle="Outset" BorderWidth="10px" Width="600px">
  23.         <asp:MultiView ID="mvSetupWizard" runat="server" ActiveViewIndex="0">
  24.             <asp:View ID="vwWelcome" runat="server">
  25.                 <h2>
  26.                     Welcome to the Set-up Wizard<br />
  27.                     <br />
  28.                     <br />
  29.                     <asp:Button ID="btnWelcomeNext" runat="server" OnClick="btnWelcomeNext_Click" 
  30.                         Text="Start Wizard &gt;" />
  31.                 </h2>
  32.             </asp:View>
  33.             <asp:View ID="vwPermissions" runat="server">
  34.                 <h2>
  35.                     Permissions Check<br />
  36.                     <br />
  37.                     <asp:Button ID="btnCheckPermissions" runat="server" OnClick="btnCheckPermissions_Click"
  38.                         Text="Click here to check permissions (may need to try more than once)" />
  39.                     <br />
  40.                 </h2>
  41.                 <asp:BulletedList ID="blPermissions" runat="server">
  42.                 </asp:BulletedList>
  43.                 <br />
  44.                 <asp:Label ID="lblPermissionCheck" runat="server" EnableViewState="False"></asp:Label>
  45.                 <br />
  46.                 <br />
  47.                 <asp:Button ID="btnPermissionsPrevious" runat="server" Text="&lt; Back to Welcome"
  48.                     OnClick="btnPermissionsPrevious_Click" />
  49.                 &nbsp;
  50.                 <asp:Button ID="btnPermissionsNext" runat="server" Text="Continue To Next Step &gt;"
  51.                     EnableViewState="False" Visible="False" OnClick="btnPermissionsNext_Click" />
  52.             </asp:View>
  53.             <asp:View ID="vwDatabase" runat="server">
  54.                 <h2>
  55.                     Database Configuration</h2>
  56.                 Enter your Microsoft SQL database connection information and click the&nbsp;<b>Test
  57.                     Connection</b> button.<br />
  58.                 <br />
  59.                 <table id="tblDatabase" runat="Server" cellpadding="2" cellspacing="2" border="1">
  60.                     <tr>
  61.                         <td height="30" valign="top" class="style1">
  62.                             <asp:Label ID="lblServer" runat="Server">Server:</asp:Label>
  63.                         </td>
  64.                         <td style="width: 150px;" valign="top">
  65.                             <asp:TextBox ID="txtServer" runat="Server" Width="150px">(local)</asp:TextBox>
  66.                         </td>
  67.                         <td valign="middle">
  68.                             &nbsp;
  69.                             <asp:Label ID="lblServerHelp" runat="Server">(name or IP 
  70.                                 address of the database server)</asp:Label>
  71.                         </td>
  72.                     </tr>
  73.                     <tr id="trDatabase" runat="server">
  74.                         <td height="30" valign="top" class="style1">
  75.                             <asp:Label ID="lblDataBase" runat="Server">Database Name:</asp:Label>
  76.                         </td>
  77.                         <td style="width: 150px;" valign="top">
  78.                             <asp:TextBox ID="txtDatabase" runat="Server" Width="150px">SilverlightDesktop</asp:TextBox>
  79.                         </td>
  80.                         <td valign="middle">
  81.                             &nbsp;
  82.                             <asp:Label ID="lblDatabaseHelp" runat="Server">(name of 
  83.                                 database (must already exist))</asp:Label>
  84.                         </td>
  85.                     </tr>
  86.                     <tr id="trIntegrated" runat="server">
  87.                         <td height="30" valign="top" class="style1">
  88.                             <asp:Label ID="lblIntegrated" runat="Server">Integrated Security ?:</asp:Label>
  89.                         </td>
  90.                         <td valign="top">
  91.                             <asp:CheckBox ID="chkIntegrated" runat="Server" AutoPostBack="True" Checked="True"
  92.                                 OnCheckedChanged="chkIntegrated_CheckedChanged" />
  93.                         </td>
  94.                         <td valign="middle">
  95.                             &nbsp;
  96.                             <asp:Label ID="lblIntegratedHelp" runat="Server">(check this box if using integrated security)</asp:Label>
  97.                         </td>
  98.                     </tr>
  99.                     <tr id="trUser" runat="Server" visible="false">
  100.                         <td height="30" valign="top" class="style1">
  101.                             <asp:Label ID="lblUserId" runat="Server">User ID:</asp:Label>
  102.                         </td>
  103.                         <td style="width: 150px;" valign="top">
  104.                             <asp:TextBox ID="txtUserId" runat="Server" Width="150px"></asp:TextBox>
  105.                         </td>
  106.                         <td valign="middle">
  107.                             &nbsp;
  108.                         </td>
  109.                     </tr>
  110.                     <tr id="trPassword" runat="Server" visible="false">
  111.                         <td height="30" valign="top" class="style1">
  112.                             <asp:Label ID="lblPassword" runat="Server">Password:</asp:Label>
  113.                         </td>
  114.                         <td style="width: 150px;" valign="top">
  115.                             <asp:TextBox ID="txtPassword" runat="Server" TextMode="Password" Width="150px" />
  116.                         </td>
  117.                         <td valign="middle">
  118.                             &nbsp;
  119.                         </td>
  120.                     </tr>
  121.                 </table>
  122.                 <br />
  123.                 <asp:Button ID="btnDatabaseCheck" runat="server" Text="Test Connection" OnClick="btnDatabaseCheck_Click" />
  124.                 <br />
  125.                 <br />
  126.                 <asp:Label ID="lblConnectionResults" runat="server" EnableViewState="False"></asp:Label>
  127.                 <br />
  128.                 <br />
  129.                 <asp:Button ID="btnDatabasePrevious" runat="server" OnClick="btnDatabasePrevious_Click"
  130.                     Text="&lt; Back to Permission Check" />
  131.                 &nbsp;<asp:Button ID="btnDatabaseNext" runat="server" EnableViewState="False" OnClick="btnDatabaseNext_Click"
  132.                     Text="Continue To Next Step &gt;" Visible="False" />
  133.             </asp:View>
  134.             <asp:View ID="vwDatabaseSetup" runat="server">
  135.                 <h2>
  136.                     Install Database Scripts</h2>
  137.                 <br />
  138.                 &nbsp;<asp:Label ID="lblDatabaseSetup" runat="server"></asp:Label>
  139.                 <br />
  140.                 <br />
  141.                 <br />
  142.                 <asp:Button ID="btnDatabaseSetupPrevious" runat="server" OnClick="btnCompletePrevious_Click"
  143.                     Text="&lt; Back to Database Configuration" />
  144.                 &nbsp;
  145.                 <asp:Button ID="btnDatabaseSetupNext" runat="server" EnableViewState="False" Text="Continue &gt;"
  146.                     OnClick="btnDatabaseSetupNext_Click" />
  147.             </asp:View>
  148.             <asp:View ID="vwAdminAccount" runat="server">
  149.                 <h2>
  150.                     Administrator Account Configuration</h2>
  151.                 Enter a user name and password for the administrtor account<table id="tblDatabase0"
  152.                     runat="Server" border="1" cellpadding="2" cellspacing="2">
  153.                     <tr>
  154.                         <td class="style1" height="30" valign="top">
  155.                             <asp:Label ID="lblUserName" runat="Server">User Name:</asp:Label>
  156.                         </td>
  157.                         <td valign="top">
  158.                             <asp:TextBox ID="txtUserName" runat="Server">admin</asp:TextBox>
  159.                         </td>
  160.                     </tr>
  161.                     <tr id="trDatabase1" runat="server">
  162.                         <td class="style1" height="30" valign="top">
  163.                             <asp:Label ID="lblUserPassword" runat="Server">Password:</asp:Label>
  164.                         </td>
  165.                         <td valign="top">
  166.                             <asp:TextBox ID="txtUserPassword" runat="Server" TextMode="Password"></asp:TextBox>
  167.                         </td>
  168.                     </tr>
  169.                     <tr id="trDatabase2" runat="server">
  170.                         <td class="style1" height="30" valign="top">
  171.                             Email:
  172.                         </td>
  173.                         <td valign="top">
  174.                             <asp:TextBox ID="txtUserEmail" runat="Server" Columns="40"></asp:TextBox>
  175.                         </td>
  176.                     </tr>
  177.                 </table>
  178.                 <br />
  179.                 <asp:Label ID="lblUserAccountResults" runat="server" EnableViewState="False"></asp:Label>
  180.                 <br />
  181.                 <asp:Button ID="btnDatabaseSetupPrevious0" runat="server" 
  182.                     OnClick="btnCompletePrevious_Click" 
  183.                     Text="&lt; Back to Database Configuration" />
  184.                 &nbsp;<asp:Button ID="btnCreateAdmin" runat="server" 
  185.                     onclick="btnCreateAdmin_Click" Text="Continue &gt;" />
  186.             </asp:View>
  187.             <asp:View ID="vwComplete" runat="server">
  188.                 <h2>
  189.                     Wizard Complete</h2>
  190.                 <br />
  191.                 Click the Complete Set-up button to complete the set-up.
  192.                 <br />
  193.                 <br />
  194.                 <br />
  195.                 <asp:Button ID="btnCompleteNext" runat="server" EnableViewState="False"
  196.                     Text="Complete Set-up" onclick="btnCompleteNext_Click" />
  197.             </asp:View>
  198.         </asp:MultiView>
  199.     </asp:Panel>
  200.     <p>
  201.         <asp:HyperLink ID="lnkBack" runat="server" NavigateUrl="~/Default.aspx">[Back]</asp:HyperLink>
  202.     </p>
  203.     </form>
  204. </body>
  205. </html>