📄 databasecontrol.ascx
字号:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="DatabaseControl.ascx.vb" Inherits="Install_Control_DatabaseControl" %>
<%@ Register Src="../../Admin/Controls/ResultMessageControl.ascx" TagName="ResultMessageControl"
TagPrefix="uc1" %>
<uc1:ResultMessageControl ID="ResultMessageControl1" runat="server" />
<br />
<asp:Panel ID="pnlServer" runat="server">
<div class="sectionheader">
Server Selection</div>
<table cellpadding="5">
<tr>
<td>
Server Name</td>
<td style="width: 137px">
<asp:TextBox ID="txtServer" runat="server" Text="localhost\SQLEXPRESS" Width="242px"></asp:TextBox><br />
<em>This is the name or IP of the DB Server that you want to install the database into.
SQLExpress will automatically install itself into the above location.</em></td>
</tr>
<tr>
<td>
Use Trusted Connection</td>
<td>
<asp:CheckBox ID="chkTrusted" runat="server" AutoPostBack="True" Checked="True" OnCheckedChanged="chkTrusted_CheckedChanged" />
<br />
<i>If you select "Use Trusted Connection", you need to grant the ASP worker process
DB_OWNER privileges. If you don't know how to do this, <a href="Help.aspx">READ THIS
FIRST</a> or your install will fail. </i>
</td>
</tr>
</table>
<asp:Panel ID="pnlSqlMode" runat="server" Visible="false">
<table cellpadding="5">
<tr>
<td>
Username</td>
<td style="width: 137px">
<asp:TextBox ID="txtUsername" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 21px">
Password</td>
<td style="width: 137px; height: 21px">
<asp:TextBox ID="txtPassword" runat="server"></asp:TextBox></td>
</tr>
</table>
</asp:Panel>
<asp:Button ID="btnSetServer" runat="server" OnClick="btnSetServer_Click" Text="Set Server" />
<br />
<br />
</asp:Panel>
<asp:Panel ID="pnlDB" runat="server" Visible="false">
<div class="sectionheader">
Database Selection</div>
<table cellpadding="5">
<tr>
<td>
Select Database:</td>
<td style="width: 201px">
<asp:DropDownList ID="ddlDB" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td colspan="2">
--or--</td>
</tr>
<tr>
<td>
Create a new one:</td>
<td style="width: 201px">
<asp:TextBox ID="txtCreateDB" runat="server"></asp:TextBox><asp:Button ID="btnCreate"
runat="server" Text="Create" />
</td>
</tr>
</table>
</asp:Panel>
<br />
<asp:Panel ID="pnlInstall" runat="server" Visible="false">
<div class="sectionheader">
Install</div>
<asp:Button ID="btnInstall" runat="server" Text="Install" />
</asp:Panel>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -