sendmessage.aspx

来自「ASP C#代码实例 适合初学人士学习使用」· ASPX 代码 · 共 53 行

ASPX
53
字号
<%@ Page language="c#" Codebehind="SendMessage.aspx.cs" AutoEventWireup="false" Inherits="Example_12_18.SendMessage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Example_12_18:在网页中实现发送手机短信</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">
			<table>
				<tr>
					<td width="150" align="right">营运商名称:</td>
					<td>
						<asp:TextBox id="Carrier" runat="server" Width="200px"></asp:TextBox></td>
				</tr>
				<tr>
					<td width="150" align="right">注册的手机ID:</td>
					<td>
						<asp:TextBox id="Userid" runat="server" Width="200px"></asp:TextBox></td>
				</tr>
				<tr>
					<td width="150" align="right">注册手机的密码:</td>
					<td>
						<asp:TextBox id="Password" runat="server" Width="200px" TextMode="Password"></asp:TextBox></td>
				</tr>
				<tr>
					<td width="150" align="right">对方的手机号码:</td>
					<td>
						<asp:TextBox id="Mobilenumber" runat="server" Width="200px"></asp:TextBox></td>
				</tr>
				<tr>
					<td width="150" align="right" valign="top">短消息的内容:</td>
					<td>
						<asp:TextBox id="Message" runat="server" Width="320px" TextMode="MultiLine" Height="152px"></asp:TextBox></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><br>
						<asp:Button id="SendMessageBtn" runat="server" Text="发送短信" Width="114px"></asp:Button>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:Label id="Msg" runat="server" ForeColor="Red" Font-Bold="True" Visible="False">发送短信成功!!!</asp:Label>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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