Replace # with < and >
#%@ Page Language="C#" AutoEventWireup="true" CodeFile="password_reminder.aspx.cs" Inherits="password_reminder" %#
#!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 id="Head1" runat="server"#
#meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /#
#title#Operation Homes.com#/title#
#link href="css/pop.css" rel="stylesheet" type="text/css" /#
#script src="js/jslatest.js"##/script#
#script language="javascript" type="text/javascript"#
function clear()
{
document.getElementById("txtemail").innerHTML="";
return false;
}
function btnsubmit_onclick()
{
if (emptyvalidation(document.getElementById('hdn1'),"Woops! You forgot to fill in your Email Address")==false)
{
document.getElementById('hdn1').focus();
return false;
}
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.getElementById('hdn1').value;
if(reg.test(address) == false)
{
alert('Woops! You have entered an invalid Email Address');
document.getElementById('txtemail').focus();
document.getElementById('txtemail').select();
return false;
}
document.getElementById('LoadingImage').style.display="inline";
var ret = SimpleService.Forgotpass(document.getElementById("hdn1").value, OnComplete, OnTimeOut, OnError);
return false;
}
function OnComplete(args) {
if(args.toString()=='1')
{
document.getElementById('LoadingImage').style.display="none";
document.getElementById("Label1").style.display="inline";
document.getElementById("Label1").innerHTML ="Your Password has been sent to your EmailId";
//document.form1.msg.value="sent";
}
else
{
document.getElementById('LoadingImage').style.display="none";
document.getElementById("Label1").style.display="inline";
document.getElementById("Label1").innerHTML ="Invalid EmailId";
}
}
function OnTimeOut(args) {
alert("Service call timed out.");
}
function OnError(args) {
alert("Error calling service method.");
}
#/script#
#/head#
#body#
#form id="form1" runat="server"#
#script#
$("input").change(function () {
document.getElementById('hdn1').value= $(this).val();
}).keyup();
#/script#
#asp:ScriptManager ID="ScriptManager1" runat="server"#
#Services#
#asp:ServiceReference Path="SimpleService.asmx" /#
#/Services#
#/asp:ScriptManager#
#div class="password_reminder"#
#div class="head_pass"##img src="images/pass_logo.jpg" alt="" /##/div#
#div class="content_pass" id="password_content" #
#asp:UpdatePanel ID="UpdatePanel1" runat="server"#
#ContentTemplate#
#table width="100%" border="0" cellspacing="0" cellpadding="0" class="bord"#
#tr#
#td height="28" colspan="3" align="center" bgcolor="#EFEFEF" ##h1#Password Reminder#/h1##/td#
#/tr#
#tr#
#td height="28" colspan="3" align="center" bgcolor="#EFEFEF"##strong#Please enter
the email address you used when you registered #/strong##/td#
#/tr#
#tr#
#td width="33%" height="35" bgcolor="#EFEFEF" #Enter Your Email Address#/td#
#td width="36%" height="28" bgcolor="#EFEFEF" #
#asp:TextBox ID="txtemail" runat="server" ReadOnly="false"
##/asp:TextBox#
#/td#
#td width="31%" bgcolor="#EFEFEF" # user@domain.com#/td#
#/tr#
#tr#
#td bgcolor="#EFEFEF" colspan="2" height="35" width="33%"#
#asp:Label ID="Label1" runat="server" Text="Label" ForeColor="Red"##/asp:Label#
#/td#
#td bgcolor="#EFEFEF" width="31%"#
#asp:HiddenField ID="hdn1" runat="server" /#
#asp:Image ID="LoadingImage" runat="server" Height="24px"
ImageUrl="~/images/bigrotation2.gif" Width="28px" /#
#/td#
#/tr#
#tr#
#td height="35" colspan="3" bgcolor="#EFEFEF" #
#a href="#"#
#asp:ImageButton ID="btnsubmit"
ImageUrl="images/sub_btn.jpg" CssClass="btn" runat="server"
OnClientClick="return btnsubmit_onclick()" /#
#/a# #a href="#"#
#/a##/td#
#/tr#
#/table#
#/ContentTemplate#
#/asp:UpdatePanel#
#/div#
#/div#
#/form#
#/body#
#/html#