CodeBehind File not getting executed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GaryDean

    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="PageO ne.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 InitializeCompo nent)
    --
    Regards,
    Gary Blakely


  • Karl Seguin

    #2
    Re: CodeBehind File not getting executed

    How are those events hooked up? Is AutoEventWireup set to true?

    Karl

    --
    MY ASP.Net tutorials
    Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance

    http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



    "GaryDean" <GaryDean@newsg roups.nospam> wrote in message
    news:%23CQg8JCC GHA.3876@tk2msf tngp13.phx.gbl. ..[color=blue]
    >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="PageO ne.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 InitializeCompo nent)
    > --
    > Regards,
    > Gary Blakely
    >
    >[/color]


    Comment

    • GaryDean

      #3
      Re: CodeBehind File not getting executed

      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:%23gMD6lCC GHA.336@TK2MSFT NGP14.phx.gbl.. .[color=blue]
      > 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@newsg roups.nospam> wrote in message
      > news:%23CQg8JCC GHA.3876@tk2msf tngp13.phx.gbl. ..[color=green]
      >>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="PageO ne.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 InitializeCompo nent)
      >> --
      >> Regards,
      >> Gary Blakely
      >>
      >>[/color]
      >
      >[/color]


      Comment

      • Karl Seguin

        #4
        Re: CodeBehind File not getting executed

        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
        Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance

        http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



        "GaryDean" <GaryDean@newsg roups.nospam> wrote in message
        news:eZjDspCCGH A.2040@TK2MSFTN GP14.phx.gbl...[color=blue]
        > 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:%23gMD6lCC GHA.336@TK2MSFT NGP14.phx.gbl.. .[color=green]
        >> 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@newsg roups.nospam> wrote in message
        >> news:%23CQg8JCC GHA.3876@tk2msf tngp13.phx.gbl. ..[color=darkred]
        >>>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="PageO ne.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 InitializeCompo nent)
        >>> --
        >>> Regards,
        >>> Gary Blakely
        >>>
        >>>[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • GaryDean

          #5
          Re: CodeBehind File not getting executed

          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 "improvemen ts"

          :)

          --
          Regards,
          Gary Blakely
          Dean Blakely & Associates

          "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
          wrote in message news:O8oESwCCGH A.312@TK2MSFTNG P09.phx.gbl...[color=blue]
          >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@newsg roups.nospam> wrote in message
          > news:eZjDspCCGH A.2040@TK2MSFTN GP14.phx.gbl...[color=green]
          >> 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:%23gMD6lCC GHA.336@TK2MSFT NGP14.phx.gbl.. .[color=darkred]
          >>> 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@newsg roups.nospam> wrote in message
          >>> news:%23CQg8JCC GHA.3876@tk2msf tngp13.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="PageO ne.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 InitializeCompo nent)
          >>>> --
          >>>> Regards,
          >>>> Gary Blakely
          >>>>
          >>>>
          >>>
          >>>[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Karl Seguin

            #6
            Re: CodeBehind File not getting executed

            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
            Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance

            http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



            "GaryDean" <GaryDean@newsg roups.nospam> wrote in message
            news:uQK9W4CCGH A.4076@TK2MSFTN GP14.phx.gbl...[color=blue]
            > 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 "improvemen ts"
            >
            > :)
            >
            > --
            > Regards,
            > Gary Blakely
            > Dean Blakely & Associates
            > www.deanblakely.com
            > "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
            > wrote in message news:O8oESwCCGH A.312@TK2MSFTNG P09.phx.gbl...[color=green]
            >>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@newsg roups.nospam> wrote in message
            >> news:eZjDspCCGH A.2040@TK2MSFTN GP14.phx.gbl...[color=darkred]
            >>> 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:%23gMD6lCC GHA.336@TK2MSFT NGP14.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@newsg roups.nospam> wrote in message
            >>>> news:%23CQg8JCC GHA.3876@tk2msf tngp13.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="PageO ne.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 InitializeCompo nent)
            >>>>> --
            >>>>> Regards,
            >>>>> Gary Blakely
            >>>>>
            >>>>>
            >>>>
            >>>>
            >>>
            >>>[/color]
            >>
            >>[/color]
            >
            >[/color]


            Comment

            Working...