Professional Web Applications Themes

Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. - ASP.NET Building Controls

Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2. TextBox.TextChanged { WasButtonClickFired? } 3. ImageButton.Click { } I need a way to get the TextChanged event not to fire or at least to know if the Click event of a button has been fired. Thanks. / jorge...

  1. #1

    Default Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.

    Hello

    I have the following situation: (everything is dynamic (controls.add))

    1. Button.Init {
    WasButtonClickFired = true
    }

    2. TextBox.TextChanged {
    WasButtonClickFired?
    }

    3. ImageButton.Click {
    }


    I need a way to get the TextChanged event not to fire or at least to know if
    the Click event of a button has been fired.

    Thanks.
    / jorge




    jorge Guest

  2. #2

    Default Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.

    Hello

    I have the following situation: (everything is dynamic (controls.add))

    1. Button.Init {
    WasButtonClickFired = true
    }

    2. TextBox.TextChanged {
    WasButtonClickFired?
    }

    3. ImageButton.Click {
    }


    I need a way to get the TextChanged event not to fire or at least to know if
    the Click event of a button has been fired.

    Thanks.
    / jorge



    jorge Guest

  3. #3

    Default Re: Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.

    Hi,

    you'd know that if you'd have the processing in OnPreRender (when you know
    which have been raised and which don't). Other way is to manually check
    Request.Form collection if there would be ImageButton in the form post
    collection data. You can't impact on order of the events.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    [url]http://blogs.aspadvice.com/joteke[/url]



    "jorge" <anonymousdiscussions.microsoft.com> wrote in message
    news:uYXv4YcQEHA.3524TK2MSFTNGP09.phx.gbl...
    > Hello
    >
    > I have the following situation: (everything is dynamic (controls.add))
    >
    > 1. Button.Init {
    > WasButtonClickFired = true
    > }
    >
    > 2. TextBox.TextChanged {
    > WasButtonClickFired?
    > }
    >
    > 3. ImageButton.Click {
    > }
    >
    >
    > I need a way to get the TextChanged event not to fire or at least to know
    if
    > the Click event of a button has been fired.
    >
    > Thanks.
    > / jorge
    >
    >
    >
    >

    Teemu Keiski Guest

Similar Threads

  1. The button(in repeater)'s click event
    By balrog1983 in forum Macromedia Flex General Discussion
    Replies: 8
    Last Post: June 18th, 07:53 PM
  2. Button Click Event Not Working
    By JeffHung in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 11th, 09:11 AM
  3. button click event from inside a list
    By tremerator@hotmail.com in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: October 20th, 08:32 PM
  4. Access the FooterTemplates TextBox control on the Button Click Event
    By Arulraja in forum ASP.NET Data Grid Control
    Replies: 3
    Last Post: November 14th, 08:25 AM
  5. Cannot recieve click event on Link Button
    By developer1996 in forum ASP.NET Building Controls
    Replies: 2
    Last Post: July 8th, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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