<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
function validationCheck() {
var summary = "";
summary += isvalidName();
summary += isvalidEmail();
summary += isvalidSubject();
summary += isvalidMessage();
if (summary != "") {
alert(summary);
return false;
}
else {
return true;
}
}
function isvalidName() {
var id;
var temp = document.getElementById("<%=txtName.ClientID %>");
id = temp.value;
if (id == "") {
return ("Please enter Name" + "\n");
}
else {
return "";
}
}
function isvalidEmail() {
var id;
var temp = document.getElementById("<%=txtEmail.ClientID %>");
id = temp.value;
var re = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
if (id == "") {
return ("Please Enter Email" + "\n");
}
else if (re.test(id)) {
return "";
}
else {
return ("Email should be in the form [email protected]" + "\n");
}
}
function isvalidSubject() {
var id;
var temp = document.getElementById("<%=txtSubject.ClientID %>");
id = temp.value;
if (id == "") {
return ("Please enter Subject" + "\n");
}
else {
return "";
}
}
function isvalidMessage() {
var id;
var temp = document.getElementById("<%=txtMessage.ClientID %>");
id = temp.value;
if (id == "") {
return ("Please enter Message" + "\n");
}
else {
return "";
}
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<table style="width: 100%;">
<tr>
<td>Name:</td>
<td>
<asp:TextBox ID="txtName" runat="server" CssClass="txt"></asp:TextBox></td>
<td> </td>
</tr>
<tr>
<td>Email ID:</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" CssClass="txt"></asp:TextBox></td>
<td> </td>
</tr>
<tr>
<td>Subject:</td>
<td>
<asp:TextBox ID="txtSubject" runat="server" CssClass="txt"></asp:TextBox></td>
<td> </td>
</tr>
<tr>
<td>Attach a file:</td>
<td>
<asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true" />
</td>
<td></td>
</tr>
<tr>
<td>Message:</td>
<td>
</td>
<td> </td>
</tr>
<tr>
<td></td>
</tr>
</table>
</asp:Content>
testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021testing blog 5th feb 2021
![]()