?? addredirect.aspx
字號:
<%@ Page language="c#" Codebehind="AddRedirect.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.Admin.CustomRedirects.AddRedirect" %>
<%@ Register TagPrefix="User" TagName="AdminHeader" Src="~/Admin/Controls/AdminHeader.ascx" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities.Admin" %>
<user:adminheader id="AdminHeader1" title="Add Redirect" Runat="server"></user:adminheader>
<h3>Add New Redirect</h3>
<div class="pageDescription" style="WIDTH: 500px">
<P>On this page you can add a new redirection URL.
</P>
<P>Source URLs <STRONG>must</STRONG> be relative to the application root
without the leading "/".<BR>
<STRONG>Example</STRONG>: "myParentSection/myArticleSection/" or
"myDiscussionSection/314.aspx"</P>
<P>Destination URL should be relative to application root without the leading '/"
if the destination is on this site. If the destination is not in this site, use
the fully qualified URL including the "http://" part.
</P>
</div>
<br>
<asp:Label id="lblFormatErrorText" runat="server" ForeColor="Red" Visible="False"></asp:Label>
<FORM id="Form1" encType="multipart/form-data" runat="Server">
<TABLE>
<TR>
<TD colSpan="2">
<HR width="100%" SIZE="1">
</TD>
</TR>
<TR>
<td>Source URL:
</td>
<td><asp:textbox id="txtSourceUrl" Runat="Server" Columns="50"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator1" Runat="server" Text="(required)" ControlToValidate="txtSourceUrl"
Display="Dynamic">(required)</asp:requiredfieldvalidator>
<asp:Label id="lblSourceError" runat="server" ForeColor="Red" Visible="False">*</asp:Label></td>
</TR>
<tr>
<td height="42">Source Type:
</td>
<td vAlign="top" height="42"><asp:radiobutton id="rbSourceExact" runat="server" Text="Redirect requests for this exect page only."
Checked="True" GroupName="RedirectType" AutoPostBack="True"></asp:radiobutton><BR>
<asp:radiobutton id="rbSourcePath" runat="server" Text="Redirect requests for any page in this section."
GroupName="RedirectType" AutoPostBack="True"></asp:radiobutton></td>
</tr>
<TR>
<TD vAlign="top" colSpan="2">
<HR width="100%" SIZE="1">
</TD>
</TR>
<TR>
<td>Destination URL:
</td>
<td vAlign="top"><asp:textbox id="txtDestinationUrl" Runat="Server" Columns="50"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator2" Runat="server" Text="(required)" ControlToValidate="txtDestinationUrl"
Display="Dynamic">(required)</asp:requiredfieldvalidator>
<asp:Label id="lblDestinationError" runat="server" ForeColor="Red" Visible="False">*</asp:Label></td>
</TR>
<TR>
<TD height="41">Destination Type:</TD>
<TD vAlign="top" height="41">
<asp:RadioButton id="rbDestExact" runat="server" Text="Send browser to this exact URL" Checked="True"
GroupName="DestType"></asp:RadioButton><BR>
<asp:RadioButton id="rbDestPath" runat="server" Text="Send browser to the same page name at this new path."
GroupName="DestType" Enabled="False"></asp:RadioButton></TD>
</TR>
<TR>
<TD colSpan="2">
<HR width="100%" SIZE="1">
</TD>
</TR>
<tr>
<td colSpan="2"><asp:button id="btnAdd" Runat="Server" Text="Add Redirect"></asp:button></td>
</tr>
</TABLE>
</FORM>
<table class="body" cellSpacing="0" cellPadding="3" border="0">
<tr>
<td><A href="Default.aspx">Return to Edit Redirects</A></td>
<td>|</td>
<td><a href="../Default.aspx">Return to Admin</a></td>
<td>|</td>
<td><a href="../../Default.aspx">Return to Site</a></td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -