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

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

  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. Similar Questions and Discussions

    1. Button Click Event Not Working
      I'm a newbie to Flex. What I'm trying to do is to make a button when clicked, it prints some string. I like the code to be inside a class, if...
    2. button click event from inside a list
      Hi, I made a custom button (CustomButton.mxml) component and I use it inside a list as a itemRenderer, like that: <mx:List id="prodList"...
    3. SIMULATE / FORCE A BUTTON CLICK OR EVENT
      Since it's not listed in this forum, here's the answer: <cfsavecontent variable="force"> add_user.dispatchEvent({type:"click"});...
    4. The button(in repeater)'s click event
      I want to set click event of buttons which are created by repeater ,in the event i want to remove the data of special indexitem, as follows:...
    5. Access the FooterTemplates TextBox control on the Button Click Event
      Hello, I have the following code in the .aspx file <asp:TemplateColumn HeaderText="&#160;FG Name"> <HeaderStyle ForeColor="White"></HeaderStyle>...
  3. #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

  4. #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" <anonymous@discussions.microsoft.com> wrote in message
    news:uYXv4YcQEHA.3524@TK2MSFTNGP09.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

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