⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webform1.aspx

📁 Microsoft?ASP.NET Programming with Microsoft Visual C#?.NET Version 2003 Step By Step
💻 ASPX
字号:
<%@ Page validateRequest="false" language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Chapter_06.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>WebForm1</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <!-- &lt; and &gt; represent < and > -->
            <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 16px" runat="server">Enter text to display (&lt;b&gt;, &lt;i&gt;, &lt;hr&gt; acceptable):</asp:Label>
            <asp:Button id="Button1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 168px" runat="server"
                Text="Display"></asp:Button>
            <asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 40px" runat="server"
                TextMode="MultiLine" Height="112px" Width="432px"></asp:TextBox>
            <!-- This validation expression will allow only <i>, <b>, and <hr> tags,
                spaces, any text A-Za-z0-9, and the following punctuation: ?!,.'". 
                All other input will cause the validation to fail.
                Note that this expression does not validate for well-formed HTML -->
            <asp:RegularExpressionValidator id="RegularExpressionValidator1" style="Z-INDEX: 104; LEFT: 16px; POSITION: absolute; TOP: 200px"
                runat="server" ErrorMessage="Invalid Input Found!" ValidationExpression="^([\s\w\?\!\,\.\'\&quot;]*|(</?(i|I|b|B|hr|HR)>))*$"
                ControlToValidate="TextBox1"></asp:RegularExpressionValidator>
            <asp:Label id="Label2" style="Z-INDEX: 105; LEFT: 16px; POSITION: absolute; TOP: 232px" runat="server"></asp:Label>
        </form>
    </body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -