-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactUs.aspx
More file actions
105 lines (101 loc) · 4.05 KB
/
ContactUs.aspx
File metadata and controls
105 lines (101 loc) · 4.05 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<%@ Page Language="C#" MasterPageFile="~/masters/One.master" AutoEventWireup="true" CodeFile="ContactUs.aspx.cs"
Inherits="ContactUs" Title="Contact Us" Async="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
<script language="javascript" type="text/javascript">
function ResetContactUsForm() {
var NameTextBox = document.getElementById('<%= NameTextBox.ClientID %>');
var PhoneOrEmailTextBox = document.getElementById('<%= PhoneOrEmailTextBox.ClientID %>');
var SubjectTextBox = document.getElementById('<%= SubjectTextBox.ClientID %>');
var MessageTextBox = document.getElementById('<%= MessageTextBox.ClientID %>');
NameTextBox.value = '';
PhoneOrEmailTextBox.value = '';
SubjectTextBox.value = '';
MessageTextBox.value = '';
}
</script>
<h2>
Contact Us</h2>
<asp:MultiView ID="ContactUsMultiView" runat="server" ActiveViewIndex="0">
<asp:View ID="FormView" runat="server">
<asp:ValidationSummary ID="ValidationSummary" runat="server" />
<table>
<tr>
<td>
Name:
</td>
<td>
<asp:TextBox ID="NameTextBox" runat="server"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
Phone or Email:</td>
<td>
<asp:TextBox ID="PhoneOrEmailTextBox" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="rfvPhoneOrEmailTextBox" runat="server" ControlToValidate="PhoneOrEmailTextBox"
Text="*" ErrorMessage="Please submit a valid email or phone number so we can return your message." />
</td>
</tr>
<tr>
<td>
Subject:
</td>
<td>
<asp:TextBox ID="SubjectTextBox" runat="server"></asp:TextBox></td>
<td>
</td>
</tr>
<tr>
<td valign="top">
Message:
</td>
<td valign="top">
<asp:TextBox ID="MessageTextBox" runat="server" Rows="6" Wrap="true" TextMode="MultiLine"></asp:TextBox>
</td>
<td valign="top">
<asp:RequiredFieldValidator ID="rfvMessageTextBox" runat="server" ControlToValidate="MessageTextBox"
Text="*" ErrorMessage="Please submit a message." />
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="SubmitButton" runat="server" Text="Submit" OnClick="SubmitButton_Click" />
<asp:Button ID="ResetButton" runat="server" Text="Reset" CausesValidation="false"
OnClientClick="ResetContactUsForm(); return false;" /></td>
<td>
</td>
</tr>
<tr>
<td colspan="3">
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="ConfirmationView" runat="server">
<asp:Label ID="SmtpConfirmationLabel" runat="server"></asp:Label>
</asp:View>
</asp:MultiView>
</asp:Content>