📄 srcview.aspx
字号:
<%@ Page Trace="false" Language="C#" AutoEventWireup="true" CodeFile="SrcView.aspx.cs" Inherits="SrcView" %>
<%@ Register TagPrefix="Acme" TagName="SourceCtrl" Src="SrcCtrl.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link type="text/css" rel="Stylesheet" href="style.css" />
<title>Source Viewer</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="SampleHeader" style="width:<%=width%>">
<div class="SampleTitle">
<table width="100%">
<tr>
<td>
<span class="SampleTitle" id="Title" runat="server">ASP.NET Source Code Viewer</span>
</td>
<td align="right">
<span class="SampleTitle">Font Size:</span>
<asp:DropDownList CssClass="Select" id="FontSize" OnSelectedIndexChanged="Size_Select"
AutoPostBack="true" runat="server">
<asp:ListItem value="1">1</asp:ListItem>
<asp:ListItem value="2">2</asp:ListItem>
<asp:ListItem value="3">3</asp:ListItem>
<asp:ListItem value="4">4</asp:ListItem>
<asp:ListItem value="5">5</asp:ListItem>
<asp:ListItem value="6">6</asp:ListItem>
<asp:ListItem value="7">7</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</div>
<table id="SourceTable" enableviewstate="true" style="font: 8pt Verdana" runat="server"/>
</div>
<Acme:SourceCtrl id="MySourceCtrl" runat="server" />
<span style="color:red" id="ErrorMessage" runat="server"/>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -