-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDefault.aspx
More file actions
61 lines (60 loc) · 1.99 KB
/
Default.aspx
File metadata and controls
61 lines (60 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPExample.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>websms.com C# Toolkit example</title>
</head>
<body>
<form id="SmsForm" runat="server">
<table cellspacing="10">
<tr>
<td><b>Send text message</b></td>
</tr>
<tr>
<td>Recipient:</td>
<td>
<asp:TextBox ID="Recipient" runat="server"
Width="100%" />
</td>
<td>
<asp:CustomValidator ID="RecipientValidator" runat="server" ValidationGroup="First"
ControlToValidate="Recipient" ValidateEmptyText="true"
ForeColor="red"
OnServerValidate="Validate_Recipient" />
</td>
</tr>
<tr valign="top">
<td>Text:</td>
<td>
<asp:TextBox ID="Text" runat="server"
Width="100%" TextMode="MultiLine" Rows="5" />
</td>
<td>
<asp:RequiredFieldValidator runat="server" ValidationGroup="First"
ControlToValidate="Text" ErrorMessage="Required"
ForeColor="red"/>
</td>
</tr>
<tr>
<td />
<td>
<asp:Button runat="server"
Width="100%"
Text="Send"
OnClick="Send_Click" ValidationGroup="Input1" />
</td>
</tr>
</table>
<table cellspacing="10">
<tr>
<td><b>Result</b></td>
</tr>
<tr>
<td>
<asp:Label ID="Output" runat="server" Text="-" />
</td>
</tr>
</table>
</form>
</body>
</html>