📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>弹出网页模式对话框</title>
<script language="javascript">
function opendialog()
{
var someValue=window.showModalDialog("Default2.aspx","","dialogWidth=300px;dialogHeight=200px;status=no;help=no;scrollbars=no")
document.form1.TextBox1.value=someValue;
}
</script>
</head>
<body style="text-align: center">
<form id="form1" runat="server">
<div>
<table style="width: 564px" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" style="height: 96px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 40px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="9pt" Text="收件人:"></asp:Label></td>
<td style="height: 40px;" align="left" colspan="3">
<asp:TextBox ID="TextBox1" runat="server" Width="117px" onClick="opendialog()" BorderColor="Moccasin"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 40px">
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="9pt" Text="主题:"></asp:Label></td>
<td style="width: 464px; height: 40px;" align="left" colspan="3">
<asp:TextBox ID="TextBox2" runat="server" BorderColor="Moccasin" Width="455px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 7px">
</td>
<td align="left" colspan="3" style="width: 464px; height: 7px">
</td>
</tr>
<tr>
<td colspan="1" style="vertical-align: top; width: 100px; height: 233px">
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="9pt" Text="内容:"></asp:Label></td>
<td colspan="3" style="background-image: url(Images/1111.bmp); height: 233px; width: 464px;">
</td>
</tr>
<tr>
<td colspan="4" style="height: 41px">
<asp:Button ID="Button1" runat="server" Font-Size="9pt" Text="发送" Width="70px" BackColor="Moccasin" BorderColor="#FFC080" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Font-Size="9pt" Text="重置" Width="68px" BackColor="Moccasin" BorderColor="#FFC080" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -