473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

ASP Page Not Accessing Code Behind

An asp.net web page I was working on suddenly stopped accessing back end code
when loading the page. Evening breakpointing at the page_load doesn't get
reached. It was working fine one day, and suddenly not being accessed at
all. My project is connected to a visual source save server and other
people are able to load the page and it's code behind just fine. Restarting
my IIS server and application, and getting latest from the project doesn't
help either.

Does anyone know of some setting I may have inadvertently altered that would
cause this to happen?

I'm using VSS 2005 and .Net 2.0
Nov 17 '06 #1
2 1085
See if AutoEventWireup="true" is in the @Page directive in your ASPX page.

See if there is a delegate that points to the Page_Load event to wire up the
firing of the event-handler code.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Devon" wrote:
An asp.net web page I was working on suddenly stopped accessing back end code
when loading the page. Evening breakpointing at the page_load doesn't get
reached. It was working fine one day, and suddenly not being accessed at
all. My project is connected to a visual source save server and other
people are able to load the page and it's code behind just fine. Restarting
my IIS server and application, and getting latest from the project doesn't
help either.

Does anyone know of some setting I may have inadvertently altered that would
cause this to happen?

I'm using VSS 2005 and .Net 2.0
Nov 17 '06 #2
Yes the wireup seems to be all in there normally, as I said the page can load
perfectly normally on a co-workers computer when I checked in my file and he
got the latest.
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="maillistpreference.aspx.cs"
Inherits="----------.maillistpreference" %>
"Peter Bromberg [C# MVP]" wrote:
See if AutoEventWireup="true" is in the @Page directive in your ASPX page.

See if there is a delegate that points to the Page_Load event to wire up the
firing of the event-handler code.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Nov 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Davíð Þórisson | last post by:
hi I'm having great problems at this simple task; accessing elements on the base page from my code behind various user controls. For example I have the default.aspx page and in the @Page directive...
3
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object...
5
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
3
by: MattB | last post by:
I have a UserControl that I use as a page header for my app. I want it to vary depending on what page it's being called by. In the CodeBehind, how to I refer to the calling page? Thanks! -- ...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to various queries. The thinking behind is that this...
2
by: Mike Taylor | last post by:
I'm trying to create a base page class for my project (am new to ASP.NET, so am a bit stumped) - I'm using VS.NET 2003, btw. OK, my dummy base page class is shown below: using System; using...
2
by: Fernando Lopes | last post by:
Hi. How can I access a method in the code behind of a user control from the code behind of a page or in the code behind of another usercontrol. I change the method to public and now I access from...
7
by: Andy B | last post by:
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.