Home All Groups Group Topic Archive Search About

CodeBehind File not getting executed

Author
24 Dec 2005 12:08 AM
GaryDean
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

Author
24 Dec 2005 1:29 AM
Karl Seguin
How are those events hooked up?  Is AutoEventWireup set to true?

Karl

Show quote
"GaryDean" <GaryDean@newsgroups.nospam> wrote in message
news:%23CQg8JCCGHA.3876@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
>
>
Author
24 Dec 2005 1:36 AM
GaryDean
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

Show quote
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%23gMD6lCCGHA.336@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" <GaryDean@newsgroups.nospam> wrote in message
> news:%23CQg8JCCGHA.3876@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
>>
>>
>
>
Author
24 Dec 2005 1:47 AM
Karl Seguin
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

Show quote
"GaryDean" <GaryDean@newsgroups.nospam> wrote in message
news:eZjDspCCGHA.2040@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:%23gMD6lCCGHA.336@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" <GaryDean@newsgroups.nospam> wrote in message
>> news:%23CQg8JCCGHA.3876@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
>>>
>>>
>>
>>
>
>
Author
24 Dec 2005 2:02 AM
GaryDean
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
Show quote
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O8oESwCCGHA.312@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" <GaryDean@newsgroups.nospam> wrote in message
> news:eZjDspCCGHA.2040@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:%23gMD6lCCGHA.336@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" <GaryDean@newsgroups.nospam> wrote in message
>>> news:%23CQg8JCCGHA.3876@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
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
24 Dec 2005 3:41 AM
Karl Seguin
I was suggesting you TRY it on that particular page so that we might better
narrow in on the specific issue.

Karl

Show quote
"GaryDean" <GaryDean@newsgroups.nospam> wrote in message
news:uQK9W4CCGHA.4076@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:O8oESwCCGHA.312@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" <GaryDean@newsgroups.nospam> wrote in message
>> news:eZjDspCCGHA.2040@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:%23gMD6lCCGHA.336@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" <GaryDean@newsgroups.nospam> wrote in message
>>>> news:%23CQg8JCCGHA.3876@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
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

AddThis Social Bookmark Button