<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnquiryForm.aspx.cs" Inherits="EnquiryForm" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<!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>Untitled Page</title>
    <style type="text/css">
        table{width:600px;}
    table td{outline:none; font-family:Verdana; font-size:12px; color:#000000;}
    table td input[type=text],select,textarea{outline:none}
        .style1
        {
            width: 40px;
        }
    
    </style>
    <script src="JavaScript/scriptvalidation.js" type="text/javascript"></script>
      <script language="javascript" type="text/javascript">
          function deleteSpecialChar(txtName) {
              if (txtName.value != '' && txtName.value.match(/^[\w ]+$/) == null) {
                  txtName.value = txtName.value.replace(/[\W]/g, '');
              }
          }
//          function validate(input, e)//OnClientClick="return validate(this,event)"
//          {
//              alter("HI");
//              if (document.getElementById('txtEmailId').value.indexOf("@") && document.getElementById('txtEmailId').value.indexOf(".") == -1) {
//                  alert("Please Enter a Valid Email-ID");
//                  document.getElementById('txtEmailId').focus();
//                  return false;
//              }
//          }
    </script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-168251284-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-168251284-1');
</script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
   <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnsubmit" EventName="Click" />
                        </Triggers>
                        <ContentTemplate>

<table width="100%" border="0" cellpadding="2" cellspacing="2" class="txt">
<asp:Label ID="lblerror" runat="server" Font-Bold="true"></asp:Label>

  <tr>
  
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Name</td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtName" runat="server" ValidationGroup="test" style="width:200px;" onkeypress="return isAlpha(event)" onkeyup="javascript:deleteSpecialChar(this)"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvname" runat="server" ControlToValidate="txtName" Display="None" ValidationGroup="test"  ErrorMessage="Please Enter Name"></asp:RequiredFieldValidator>
                         
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Address</td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtAddress" runat="server" style="width:200px;" ValidationGroup="test"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAddress"
    Display="None" ValidationGroup="test"  ErrorMessage="Please Enter Address"></asp:RequiredFieldValidator>
               
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">State</td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:DropDownList ID="ddl_state" runat="server" Style="width: 205px; height: 25px;" ValidationGroup="test"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddl_state_SelectedIndexChanged1">
                                    <asp:ListItem>Select State</asp:ListItem>
                              
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  Display="None" ValidationGroup="test"
      ControlToValidate="ddl_state" InitialValue="Select State" ErrorMessage="Please Select State"></asp:RequiredFieldValidator>
         
	</td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">City</td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:DropDownList ID="ddl_city" runat="server" ValidationGroup="test" 
                                Style="width: 205px; height: 25px;">
                                
                                <asp:ListItem>Select City</asp:ListItem> 
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="None" ValidationGroup="test"  
                                ControlToValidate="ddl_city" InitialValue="Select City"
                                 ErrorMessage="Please Select State"></asp:RequiredFieldValidator>
         
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Mobile&nbsp;No </td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtMobileNo" runat="server" style="width:200px;" ValidationGroup="test" MaxLength="10" onkeypress="return digitonly(this,event)" onkeyup="javascript:deleteSpecialChar(this)"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"  ControlToValidate="txtMobileNo" Display="None" ValidationGroup="test" 
                                 ErrorMessage="Please Enter MobileNo"></asp:RequiredFieldValidator>
     <asp:RegularExpressionValidator ID="regMobileNumber" runat="server" Display="None" ControlToValidate="txtMobileNo"
ErrorMessage="Please enter a  10 digit contact number Starting With(7,8,9)."
ValidationGroup="test" ValidationExpression="^[789][0-9]{9}$">*</asp:RegularExpressionValidator>

   
    </td>
  </tr>
   <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Email ID</td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtEmailId" runat="server" style="width:200px;" ValidationGroup="test"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  ControlToValidate="txtEmailId" Display="None" ValidationGroup="test" 
                                 ErrorMessage="Please Enter EmailId"></asp:RequiredFieldValidator>
                                  <asp:RegularExpressionValidator ID="revEmailId" runat="server" ErrorMessage="Please Enter Currect EmailId" Display="None" ValidationGroup="test"
                                             ControlToValidate="txtEmailID"  ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                    </td>
                                    </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Message </td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtMessage" TextMode="MultiLine" runat="server" ValidationGroup="test" style="width:200px; max-width:200px; min-height:50px;"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtMessage" Display="None" ValidationGroup="test" 
                                 ErrorMessage="Please Enter Message"></asp:RequiredFieldValidator>
         
    
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">Capcha code </td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:Image ID="ImgCaptcha" runat="server" ImageUrl="~/captcha.ashx" /></td>
     
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle"></td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <strong> *Enter the characters in the box.</strong>
    
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle"></td>
    <td width="10" align="left" valign="middle"><strong>:</strong></td>
    <td width="202" align="left" valign="middle">
    <asp:TextBox ID="txtInput" runat="server"  style="width:200px;"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"   ValidationGroup="test" ControlToValidate="txtInput" Display="None"
     ErrorMessage="Please Enter  Code"></asp:RequiredFieldValidator>
     
    <%-- <asp:CompareValidator ID="compairvalidatecodes" runat="server" ControlToValidate="ccJoin" ControlToCompare="txtCap" 
          ErrorMessage="Code Note Match"></asp:CompareValidator>--%>
      </td>
  </tr>
  <tr>
                                    
                                    <td colspan="3" align="center">
                                        <asp:UpdateProgress ID="UpdateProgress_wait" runat="server" DisplayAfter="100" DynamicLayout="true">
                                            <ProgressTemplate>
                                                <img src="images/ajax-loader.gif" alt="Please Wait" /><br />
                                                Please Wait...
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                    </td>
  
   <tr>
    <td align="left" valign="middle" class="style1">&nbsp;</td>
    <td width="65" align="left" valign="middle">
        <asp:Label ID="lblemailid" runat="server" Visible="false"></asp:Label></td>
    <td width="10" align="left" valign="middle">&nbsp;</td>
    <td width="202" align="left" valign="middle">
    <asp:Button ID="btnsubmit" runat="server" Text="Submit" ValidationGroup="test" type="submit" Style="height: 25px;
                                    width: 70px; cursor: pointer;" OnClick="btnsubmit_Click" />
                                   <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                            ShowSummary="false" ValidationGroup="test" /> 
                                    &nbsp;&nbsp;
                                <asp:Button ID="btnReset" runat="server" Text="Reset" type="reset" Style="height: 25px;
                                    cursor: pointer; width: 70px;" 
            onclick="btnReset_Click" />
    </td>
   </tr>
   </tr>
   
    
    <tr>
   <td></td>
   <td><strong>Address</strong></td><td></td>
   <td>Anaya Builing, 3rd flore R.A,Lane, Kolkata -700050
</td></tr>
   <tr>
   <td></td>
   <td><strong>E-Mail Address</strong></td><td></td>
   <td>customercare@venusrecharge.com</td></tr>
   <%--<tr>
   <td></td>
   <td><strong>Mobile No.</strong></td><td></td>
   <td>+91-7278002016</td></tr>--%>
  </table>
  </ContentTemplate>
                    </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
