Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Configuration error
Tech Novice
12y
1.3k
1
Reply
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.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Programming language for windows phone
where can i get examples of WCF - live examples