-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctcus.aspx
186 lines (150 loc) · 7.06 KB
/
ctcus.aspx
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ctcus.aspx.cs" Inherits="MenuDemos.ed" MasterPageFile="~/CtsUs.master" %>
<%@ Register Assembly="SyrinxMenuV3" Namespace="Syrinx2" TagPrefix="syx" %>
<script runat="server">
protected void submit_Click(object sender, EventArgs e)
{
try
{
//It Will call function SendEmail and confirms that message sent succesfully.
sendContact email = new sendContact();
email.SendEMail(nameTextBox.Text, emailTextBox.Text, ctcNoTextBox.Text, "Enquiry about IBC", CompanyTextbox1.Text, EnquiryTextbox1.Text, messageTextBox.Text);
confirmationLabel.Text = "Thank You for contacting us. We will get back to you in 24Hrs.<br />" +
" You will be redirected to home page.";
confirmationLabel.Visible = true;
ctcNoTextBox.Text = "";
emailTextBox.Text = "";
nameTextBox.Text = "";
messageTextBox.Text = "";
Response.AddHeader("REFRESH", "6;URL=../default.aspx");
}
catch (Exception) { }
//hiii
}
</script>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<article>
<table class="auto-style1">
<tr>
<td class="auto-style2"> </td>
<td>
<p style="font-family: Tahoma; font-size: large; font-weight: bold;
font-style: normal; font-variant: normal; color: #808080">
</p>
</td>
</tr>
<tr>
<td class="auto-style2"> </td>
<td> </td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="nameLabel" runat="server" Font-Bold="True" Font-Names="Tahoma"
Font-Size="Medium" Text="Name "></asp:label>
</td>
<td>
<asp:textbox ID="nameTextBox" runat="server" CssClass="TextBox" Font-Names="Tahoma"
Width="216px" CausesValidation="True"></asp:textbox>
<asp:requiredfieldvalidator ID="nameTextBoxRFV" ErrorMessage=" * "
runat="server" ControlToValidate="nameTextBox" ValidationGroup="save" Display="Dynamic"
SetFocusOnError="True"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="emailLabel" runat="server" Font-Bold="True" Font-Names="Tahoma"
Text="Email Id"></asp:label>
</td>
<td>
<asp:textbox ID="emailTextBox" runat="server" CssClass="TextBox" Width="216px"
CausesValidation="True"></asp:textbox>
<asp:requiredfieldvalidator ID="emailTextBoxRFV" ErrorMessage=" * "
runat="server" ControlToValidate="emailTextBox" ValidationGroup="save" Display="Dynamic"
SetFocusOnError="True"></asp:requiredfieldvalidator>
<asp:regularexpressionvalidator runat="server" ID="RegularExpressionValidator23"
SetFocusOnError="true" Text="Example: username@gmail.com" ControlToValidate="emailTextBox"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"
ValidationGroup="save" /><br />
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="subjectLabel" runat="server" Font-Bold="True" Font-Names="Tahoma"
Text="Contact No"></asp:label>
</td>
<td>
<asp:textbox ID="ctcNoTextBox" runat="server" CssClass="TextBox" Width="216px"
CausesValidation="True"></asp:textbox>
<asp:requiredfieldvalidator ID="ctcNoTextBoxRFV" ErrorMessage=" * "
runat="server" ControlToValidate="ctcNoTextBox" Display="Dynamic" SetFocusOnError="True"
ValidationGroup="save"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="ComapnyLabel1" runat="server" Font-Bold="True" Font-Names="Tahoma"
Text="Company Name"></asp:label>
</td>
<td>
<asp:textbox ID="CompanyTextbox1" runat="server" CssClass="TextBox" Width="216px"
CausesValidation="False"></asp:textbox>
<%--<asp:requiredfieldvalidator ID="Requiredfieldvalidator1" ErrorMessage=" * "
runat="server" ControlToValidate="subjectTextBox" Display="Dynamic" SetFocusOnError="True"
ValidationGroup="save"></asp:requiredfieldvalidator>--%>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="EnquiryLabel1" runat="server" Font-Bold="True" Font-Names="Tahoma"
Text="Enquiry About"></asp:label>
</td>
<td>
<asp:textbox ID="EnquiryTextbox1" runat="server" CssClass="TextBox" Width="216px"
CausesValidation="False"></asp:textbox>
<asp:requiredfieldvalidator ID="Requiredfieldvalidator1" ErrorMessage=" * "
runat="server" ControlToValidate="EnquiryTextbox1" Display="Dynamic" SetFocusOnError="True"
ValidationGroup="save"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:label ID="messageLabel" runat="server" Font-Bold="True" Font-Names="Tahoma"
Text="Message"></asp:label>
</td>
<td>
<asp:textbox ID="messageTextBox" runat="server" CssClass="TextBox" Rows="6"
TextMode="MultiLine" Width="424px" CausesValidation="True" Height="209px"></asp:textbox>
<asp:requiredfieldvalidator ID="messageTextBoxRFV" ErrorMessage=" * "
runat="server" ControlToValidate="messageTextBox"
ValidationGroup="save" Display="Dynamic"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<asp:button ID="submit" CssClass="Button" runat="server"
style="text-align: center" Text="Submit" ValidationGroup="save"
CausesValidation="true" OnClick="submit_Click"/>
</td>
</tr>
<tr>
<td> </td>
<td>
<asp:label ID="confirmationLabel" runat="server" Visible="False"></asp:label>
</td>
</tr>
</table>
</article>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
<style type="text/css">
#TextArea1
{
height: 162px;
width: 367px;
}
</style>
</asp:Content>