473,395 Members | 1,986 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,395 software developers and data experts.

CodeBehind File not getting executed

I have a 1.1 asp.net project that has been converted by the conversion
wizard. By and large the app runs allright except for one page...

On one of the .aspx pages, the code behind file is not getting executed. It
looks identical to several of the other pages that are executing fine.

CodeFile="PageOne.aspx.vb" is specified in this page the same way it is
specified in the other pages that are working.

When running the page gets rendered but no code has been executed (at least
not the Page_Load event, or InitializeComponent)
--
Regards,
Gary Blakely
Dec 24 '05 #1
5 1616
How are those events hooked up? Is AutoEventWireup set to true?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a 1.1 asp.net project that has been converted by the conversion
wizard. By and large the app runs allright except for one page...

On one of the .aspx pages, the code behind file is not getting executed.
It looks identical to several of the other pages that are executing fine.

CodeFile="PageOne.aspx.vb" is specified in this page the same way it is
specified in the other pages that are working.

When running the page gets rendered but no code has been executed (at
least not the Page_Load event, or InitializeComponent)
--
Regards,
Gary Blakely

Dec 24 '05 #2
of course, AutoEventWireup is set to FALSE as it is in all the pages.

My point was the code in this aspx page is identical to the other pages that
work including the codefile statement.

--
Regards,
Gary Blakely

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2***************@TK2MSFTNGP14.phx.gbl...
How are those events hooked up? Is AutoEventWireup set to true?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a 1.1 asp.net project that has been converted by the conversion
wizard. By and large the app runs allright except for one page...

On one of the .aspx pages, the code behind file is not getting executed.
It looks identical to several of the other pages that are executing fine.

CodeFile="PageOne.aspx.vb" is specified in this page the same way it is
specified in the other pages that are working.

When running the page gets rendered but no code has been executed (at
least not the Page_Load event, or InitializeComponent)
--
Regards,
Gary Blakely


Dec 24 '05 #3
I understand your point, but I figured you wanted help. It is possible
you've simply overlooked something - happens to me all the time.

Perhaps you can try to put your code inline <script runat="server"
language="VB">...</script> and see if it that works.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:eZ**************@TK2MSFTNGP14.phx.gbl...
of course, AutoEventWireup is set to FALSE as it is in all the pages.

My point was the code in this aspx page is identical to the other pages
that work including the codefile statement.

--
Regards,
Gary Blakely

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2***************@TK2MSFTNGP14.phx.gbl...
How are those events hooked up? Is AutoEventWireup set to true?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a 1.1 asp.net project that has been converted by the conversion
wizard. By and large the app runs allright except for one page...

On one of the .aspx pages, the code behind file is not getting executed.
It looks identical to several of the other pages that are executing
fine.

CodeFile="PageOne.aspx.vb" is specified in this page the same way it is
specified in the other pages that are working.

When running the page gets rendered but no code has been executed (at
least not the Page_Load event, or InitializeComponent)
--
Regards,
Gary Blakely



Dec 24 '05 #4
No, I have over a hundred complex codebehind files in this huge app. I
don't want to start putting them inline in the aspx pages just to make 2.0
work.

I have never had a problem like this in 1.1 - a codebehind file just failing
to execute. Probably due to the "improvements"

:)

--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O8*************@TK2MSFTNGP09.phx.gbl...
I understand your point, but I figured you wanted help. It is possible
you've simply overlooked something - happens to me all the time.

Perhaps you can try to put your code inline <script runat="server"
language="VB">...</script> and see if it that works.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:eZ**************@TK2MSFTNGP14.phx.gbl...
of course, AutoEventWireup is set to FALSE as it is in all the pages.

My point was the code in this aspx page is identical to the other pages
that work including the codefile statement.

--
Regards,
Gary Blakely

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2***************@TK2MSFTNGP14.phx.gbl...
How are those events hooked up? Is AutoEventWireup set to true?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a 1.1 asp.net project that has been converted by the conversion
wizard. By and large the app runs allright except for one page...

On one of the .aspx pages, the code behind file is not getting
executed. It looks identical to several of the other pages that are
executing fine.

CodeFile="PageOne.aspx.vb" is specified in this page the same way it is
specified in the other pages that are working.

When running the page gets rendered but no code has been executed (at
least not the Page_Load event, or InitializeComponent)
--
Regards,
Gary Blakely



Dec 24 '05 #5
I was suggesting you TRY it on that particular page so that we might better
narrow in on the specific issue.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
No, I have over a hundred complex codebehind files in this huge app. I
don't want to start putting them inline in the aspx pages just to make 2.0
work.

I have never had a problem like this in 1.1 - a codebehind file just
failing to execute. Probably due to the "improvements"

:)

--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O8*************@TK2MSFTNGP09.phx.gbl...
I understand your point, but I figured you wanted help. It is possible
you've simply overlooked something - happens to me all the time.

Perhaps you can try to put your code inline <script runat="server"
language="VB">...</script> and see if it that works.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:eZ**************@TK2MSFTNGP14.phx.gbl...
of course, AutoEventWireup is set to FALSE as it is in all the pages.

My point was the code in this aspx page is identical to the other pages
that work including the codefile statement.

--
Regards,
Gary Blakely

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2***************@TK2MSFTNGP14.phx.gbl...
How are those events hooked up? Is AutoEventWireup set to true?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"GaryDean" <Ga******@newsgroups.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
>I have a 1.1 asp.net project that has been converted by the conversion
>wizard. By and large the app runs allright except for one page...
>
> On one of the .aspx pages, the code behind file is not getting
> executed. It looks identical to several of the other pages that are
> executing fine.
>
> CodeFile="PageOne.aspx.vb" is specified in this page the same way it
> is specified in the other pages that are working.
>
> When running the page gets rendered but no code has been executed (at
> least not the Page_Load event, or InitializeComponent)
> --
> Regards,
> Gary Blakely
>
>



Dec 24 '05 #6

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

Similar topics

2
by: Graham Allwood | last post by:
I'm reading the Essential ASP.NET book by Fritz onion and he says that when VS.NET creates a new .aspx page for you is uses the codebehind attribute on the Page directive rather than the src...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
3
by: nevets2001uk | last post by:
Hi. I've just started my second ASP.NET (VB) app and I'm using codebehind this time. I'm not using visual studio but am instead coding it all in notepad (HTML, ASP.NET and CSS) I'm trying to...
2
by: Al Wilkerson | last post by:
Hey, How do you debug the codebehind file of a web application? When I put breakpoints and run in debug mode nothing happens. I can't step through because it looks like the line where the...
0
by: N. Demos | last post by:
Hello, I have a custom usercontrol, of which I have two instances of in my aspx page. Both the usercontrol and page have codebehind. In the page codebehind, I want a member variable for each...
2
by: wl | last post by:
Hi, For an asp.net application I would like to store the DB connectionstring to be used in a configuration file. I know I can use the web.config file for this (and know how to read from it)....
1
by: Randall Parker | last post by:
Using VS 2003 and Cassini web server. I'm new to ASP.Net and so this may be a dumb question. I'm getting an error where the type 'FarmLand.WebForm1' is not found. The Codebehind C# source file...
1
by: =?Utf-8?B?TmVhbA==?= | last post by:
Hi How do I execute an existing script from the codebehind.. forcing a different form to do a postback and refresh itself but in it's own frame or alternatively force a reload of an aspx form...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.