Weird Problem!! - Page_load cannot call a different class member.

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Weird Problem!! - Page_load cannot call a different class member.

    Actually, trace statements in my called Class were not executing. Now I know
    why, HttpResponse need to passed around to see the actual trace.
    Is there an elegant way of doing except short of passing it as a parameter
    to the function.

    Thanks.
    jay


    "Jay Balapa" <jbalapa_nosam@atginc.com> wrote in message
    news:OK6NesdVDHA.1704@TK2MSFTNGP11.phx.gbl...
    > Hello,
    >
    > In the page_load of my aspx page, Iam unable to call a static function of
    a
    > different class or am I able to instantiate a class and call its members.
    >
    > Static function code or member code is not executing at all. But Iam able
    to
    > execute a local function.
    >
    > Is this a known issue.
    >
    > Thanks.
    > jay
    >
    >
    >

    Jay Balapa Guest

  2. Similar Questions and Discussions

    1. base class member access (?)
      Quesote wrote: Create $myArray as protected, not private.
    2. Actionscript: Custom class function call problem
      Hello, In short, is it possible to create a custom class with a data structure and a couple of functions that can be later referred to after being...
    3. how do you explain this (OOP): Call to a member function on a non-object
      Hello, what is wrong here? the purpose is to create an array of objects and then interate over it, calling some method from all of them. I get...
    4. Call The Page_load Event
      Hi Dears I want to call the Page_load Event every 5 sec, how can I do that? I have no Ideia what I should do. I put in my web form the Timer...
    5. Fatal error: Call to a member function on a non-object in constructor?
      Hi, I'm having a problem that I have a hard time understanding. I am getting a "Fatal error: Call to a member function on a non-object" on a...
  3. #2

    Default Re: Weird Problem!! - Page_load cannot call a different class member.


    you can access: system.Web.HttpContext.Current.response
    you might wanna make sure that Current isn't null before trying to access
    it's response property...

    karl

    "Jay Balapa" <jbalapa_nosam@atginc.com> wrote in message
    news:%23Q7VswdVDHA.2544@tk2msftngp13.phx.gbl...
    > Actually, trace statements in my called Class were not executing. Now I
    know
    > why, HttpResponse need to passed around to see the actual trace.
    > Is there an elegant way of doing except short of passing it as a parameter
    > to the function.
    >
    > Thanks.
    > jay
    >
    >
    > "Jay Balapa" <jbalapa_nosam@atginc.com> wrote in message
    > news:OK6NesdVDHA.1704@TK2MSFTNGP11.phx.gbl...
    > > Hello,
    > >
    > > In the page_load of my aspx page, Iam unable to call a static function
    of
    > a
    > > different class or am I able to instantiate a class and call its
    members.
    > >
    > > Static function code or member code is not executing at all. But Iam
    able
    > to
    > > execute a local function.
    > >
    > > Is this a known issue.
    > >
    > > Thanks.
    > > jay
    > >
    > >
    > >
    >
    >

    Karl Seguin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139