web site link http://www.dehraduntaxihire.com/
It is showing me following error on the page
C# Page Code
using
System;
System.Collections;
System.Configuration;
System.Data;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.HtmlControls;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Data.SqlClient;
System.Text;
System.IO;
public
partial
class
inquiry : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
}
sbt_Click(
StringBuilder mailcontent2 =
new
StringBuilder(
"<div style='width: 600px; background-color :#ffffff;font-family :Arial;'><center><h3>Query | Dehradun Taxi Hire</h3></center>"
);
mailcontent2.Append(
"<table width='800' align='center' style='background-color:#ffffff; color:#000000;' border='1px'>"
"<tr><td><font size='2'>Name </td> <td><font size='2'> "
+ txt1.Text +
" </font></td> </tr>"
"<tr><td><font size='2'>Period </td> <td><font size='2'>From "
+ TextBox1.Text +
"<tr><td><font size='2'>Phone </td> <td><font size='2'> "
+ TextBox2.Text +
"<tr><td><font size='2'>Message</font></td> <td><font size='2'> "
+ TextBox3.Text +
" </font></td> </tr> </table> "
System.Net.Mail.MailMessage mailMessage2 =
System.Net.Mail.MailMessage(TextBox1.Text,
"[email protected]"
mailMessage2.Body = Convert.ToString(mailcontent2);
mailMessage2.Subject =
"Dehradun Taxi Hire - Inquiry"
;
mailMessage2.IsBodyHtml =
true
System.Net.Mail.SmtpClient mailClient3 =
System.Net.Mail.SmtpClient();
System.Net.NetworkCredential basicAuthenticationInfo2 =
System.Net.NetworkCredential(
,
"i(Zzx%IdK{5"
mailClient3.Host =
"216.224.185.13"
mailClient3.UseDefaultCredentials =
false
mailClient3.Credentials = basicAuthenticationInfo2;
mailClient3.Send(mailMessage2);
string
strScript =
"alert('Thank you for your inquiry; we will get back to you within 12 hours.');"
Page.ClientScript.RegisterStartupScript(
this
.GetType(),
"alertBox"
, strScript,
Aspx Page Code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="inquiry.aspx.cs" Inherits="inquiry" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
head
runat
"server"
title
></
</
body
form
id
"form1"
asp:TextBox
ID
"txt1"
CssClass
"form-control"
placeholder
"Name"
><
br
/>
"TextBox1"
"E-mail"
"TextBox2"
"Phone"
"TextBox3"
"Your Message"
TextMode
"MultiLine"
asp:Button
"sbt"
Text
"SUBMIT"
OnClick
"sbt_Click"
Html Page
span
style
""
background-color:" #ff0000;"=""><
strong
script
type
"text/javascript"
var iframesrc1="inquiry.aspx"
document.write('<
iframe
"test"
src
"'+iframesrc1+'"
width
"280px"
height
"150px"
border
"0px"
marginwidth
"0"
marginheight
hspace
vspace
frameborder
scrolling
"no"
>')