Tech Novice

Tech Novice

  • NA
  • 1
  • 1.6k

Configuration error

Jul 3 2012 11:59 AM
Am a newbie to asp.net . i just wrote a simple page with a button click.wheni click on the button it is redirected to aspspider main page .am not understanding what is the issue.below is my code

<%@ Page Language=c# %>
<html>
<head>
<script Language=c# runat=server>
void Page_Load(Object sender,EventArgs e)
{
btn.Click += new EventHandler(btn_Click);
if(!IsPostBack)
{
Response.Write(the page is loaded for the first time);
}
}
void btn_Click(Object sender,eventArgs e)
{
Response.Write(hello world);
}

</script>
<body>
<form id=frm runat=server>
<asp:Button id=btn runat=server OnClick=btn_Click>
</asp:Button>


</form>
</body>

and my web.config is

<?xml version=1.0?>
<configuration>
<system.web>
<trace enabled=true requestLimit=40 localOnly=false/>
<identity impersonate=true/>
<authentication mode=windows>
</authentication>
<authorization>
<allow users=?/>

</authorization>
<compilation debug=true/>
<sessionState mode=InProc
   
     cookieless=false
     timeout=90/>
</system.web>
</configuration>
The eroor am getting is
Your web site is expired or has a configuration problem. Please login to your account in AspSpider.com and make sure your site is configured correctly and is redirected to the home page of aspspider.com.

i observed one thing

my link is http://aspspider.ws/technovice/buttonclick.aspx.

But
when i click the  button in the page the link displayed is http://aspspider.ws/buttonclick.aspx

but
again when i copy paste this link( http://aspspider.ws/technovice/buttonclick.aspx)

i
got the correct output i.e implementation of the button click.

technovice is my userid .

am not understanding what to do .

Thankz a ton for the reply.