Aborting a _Click event?

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

  1. #1

    Default Aborting a _Click event?

    I have a web control embedded in an aspx page.

    On the web control, I have a custom_validator that checks the status
    of a dropdown list and compares that to ensure the appropriate text
    fields are filled.

    When I step through the code, I see that it is infact being run, and
    returning:
    args.IsInvalid = false;

    But, unlike past attempts the _Click event (in this case a
    Button_Click) is still being fired disregarding the afore mentioned
    CustomValidator being negative.

    Is this because the control is on a web control on not natively being
    referenced from the base aspx page, or is there something else that I
    need to look at?
    Wayne MJ Guest

  2. Similar Questions and Discussions

    1. Getting Error: Event Type 'flash.event:event' is unavailable ?????
      Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however...
    2. Caught a fatal signal (10) - Aborting
      Aftter CF aborts all of my pages get this error: Error Occurred While Processing Request Error Diagnostic Information An error occurred...
    3. ItemDataBound Event - How to access the previous record when this event is raised in DataGrid?
      ItemDataBound Event - How to access the previous record when this event is raised in DataGrid? During "ItemDataBound Event", I would like...
    4. Aborting HTTP connection from server-side
      Hi all, I wonder if this is possible: I have a script that does things that take time. In the first part of the script it does data checking and...
    5. Assign Javascript event handler function dynamically to a Flash object event?
      I have a Flash player object embedded in one of my web pages. I want to assign code to the OnReadyStateChange event for the object. Every...
  3. #2

    Default Re: Aborting a _Click event?

    That is actually what I have done, doing a trace on the routine shows
    that it is being fired, but 'IsValid=false' is being ignored.

    Would it perhaps have something to do with the actually CV is located on
    a Custom Web Control and not on the main page itself?


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Wayne MJ Guest

  4. #3

    Default Re: Aborting a _Click event?

    Wayne,

    I'm not certain. I can tell you that I have included validators within
    controls and they function perfectly.

    Sorry,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Wayne MJ" <warp_kez@hotmail.com> wrote in message
    news:epA0PnjUDHA.736@TK2MSFTNGP09.phx.gbl...
    > That is actually what I have done, doing a trace on the routine shows
    > that it is being fired, but 'IsValid=false' is being ignored.
    >
    > Would it perhaps have something to do with the actually CV is located on
    > a Custom Web Control and not on the main page itself?
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    S. Justin Gengo Guest

  5. #4

    Default Re: Aborting a _Click event?

    That is okay, I found a workaround.

    Essentially I have a property that will report the status, the
    processing routines are only run if all the conditions are met.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Wayne MJ 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