Losing event handlers

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

  1. #1

    Default Losing event handlers

    I have written an ASP.NET app with C# code-behind. While modifying
    the code and testing it, I find that I will sometimes lose all event
    handlers on the page(SortCommand, PageIndexChanged, Load, and
    ItemCommand). There doesn't seem to be a pattern. Sometimes I make
    no changes at all and when I run the app, nothing happens because the
    eventhandlers are gone. Does anyone know what is going on here???

    Also, when I say I am losing the event handlers, sometimes they do not
    appear in the code-behind, sometimes they are missing from the
    properties window in design mode, and sometimes they are missing from
    both.

    Can anyone give some insite on this problem?

    Thanks.
    Matt Sogla Guest

  2. Similar Questions and Discussions

    1. are there any event handlers besides onClick?
      hi, i've made a command for my extension which is called by a menuitem in the File menu via dw.runCommand("myCommand.html"); this .html is...
    2. Event handlers: How exactly do they work?
      I'm working on a C# serial connection. I'm talking to a device that's running embedded C. I have an event handler that handles incoming data....
    3. Event handlers called twice, or not at all
      Ok, sorry for the long post in advance, but I need an expert opinion here. I have already crawled through the groups via google and additionally...
    4. Missing Event Handlers
      I created a custom control derived from DataGrid. It work well, but I have the following problem: Sometimes, the event handlers that are declared...
    5. event handlers
      Does anyone know how to cause the cursor to advance to the next field on a form after the first field has been filled?
  3. #2

    Default Re: Losing event handlers

    No,
    it's a bug. i don't think it is documented either. If you are using source
    safe it is more likely to happen. there was a patch for this sometime ago.

    "Matt Sogla" <mjsogla@hotmail.com> wrote in message
    news:547d801a.0307300556.423b537a@posting.google.c om...
    > I have written an ASP.NET app with C# code-behind. While modifying
    > the code and testing it, I find that I will sometimes lose all event
    > handlers on the page(SortCommand, PageIndexChanged, Load, and
    > ItemCommand). There doesn't seem to be a pattern. Sometimes I make
    > no changes at all and when I run the app, nothing happens because the
    > eventhandlers are gone. Does anyone know what is going on here???
    >
    > Also, when I say I am losing the event handlers, sometimes they do not
    > appear in the code-behind, sometimes they are missing from the
    > properties window in design mode, and sometimes they are missing from
    > both.
    >
    > Can anyone give some insite on this problem?
    >
    > Thanks.

    Alvin Bruney 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