Advertise with us
Control Panel
Forum
Hosting Help
ASP.NET 4.5 & SQL 2012 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
Home
»
Questions & Answers
»
configuration error
configuration error
03 Jul, 12
Author:
technovice
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.
Answers .............
Author:
Nishanth Mohan
Posted Date: 04 Jul, 12
your site is working correctly.
You must
login
to post answer for this question.
Total
members
:
250646
Average new registrations per day (in last 7 days):
7
New Registration:
Open
Register Now
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.