سلام به همگی دوستان

من یک recaptcha در سایتم قرار داده ام و بدون مشکل آن را نشان میدهد ولی من یه مشکلی دارم اونم این هست که زمانی که روی دکمه کلیک میکنم تا درستی و نادرستی عبارت را بسنجد فقط قسمت اول if را اجرا میکند و else را اجرا نمیکند!!!این کد من است
            if (Page.IsValid)            {
StreamReader sr = new StreamReader(Server.MapPath("contact-us.html"));
string body = sr.ReadToEnd();
sr.Close();
body = body.Replace("#name#", txtname.Text);
body = body.Replace("#company#", txtcompany.Text);
body = body.Replace("#email#", txtemail.Text);
body = body.Replace("#telephone#", txttelephone.Text);
body = body.Replace("#fax#", txtfax.Text);
body = body.Replace("#address#", txtaddress.Text);
body = body.Replace("#city#", txtcity.Text);
body = body.Replace("#country#", txtcountry.Text);
body = body.Replace("#message#", txtmessage.Text);
sendmail("NO REPLY", ("it@basserkala.com").ToString(), body);


}
else
{
Response.Write("<script language='javascript'>alert('Captcha is invalid!')</script>");


}