Can I control the sequence events are executed?

Discussion in 'ASP .Net' started by AAaron123, Feb 10, 2009.

  1. AAaron123

    AAaron123 Guest

    As I understand it, if I do not include AutoPostBack the events for say,
    textBox1.TextChanged and textBox2.TextChanged will not occur until something
    forces a post back. Like a button clicked.

    Suppose it's important to me, that when the button is clicked, if the events
    are to run, that textBox1.TextChanged runs before textBox2.TextChanged .

    Or textBox1.TextChanged runs before button1.Click.


    Can I control such things?


    Thanks
     
    AAaron123, Feb 10, 2009
    #1
    1. Advertising

  2. AAaron123

    bruce barker Guest

    no you can not predict or control the order. if they are interdependant,
    then do the code in prerender, and set flags.

    -- bruce (sqlwork.com)

    AAaron123 wrote:
    > As I understand it, if I do not include AutoPostBack the events for say,
    > textBox1.TextChanged and textBox2.TextChanged will not occur until something
    > forces a post back. Like a button clicked.
    >
    > Suppose it's important to me, that when the button is clicked, if the events
    > are to run, that textBox1.TextChanged runs before textBox2.TextChanged .
    >
    > Or textBox1.TextChanged runs before button1.Click.
    >
    >
    > Can I control such things?
    >
    >
    > Thanks
    >
    >
     
    bruce barker, Feb 11, 2009
    #2
    1. Advertising

  3. AAaron123

    AAaron123 Guest

    OK.
    Thanks
    "bruce barker" <> wrote in message
    news:%23w1S%23m$...
    > no you can not predict or control the order. if they are interdependant,
    > then do the code in prerender, and set flags.
    >
    > -- bruce (sqlwork.com)
    >
    > AAaron123 wrote:
    >> As I understand it, if I do not include AutoPostBack the events for say,
    >> textBox1.TextChanged and textBox2.TextChanged will not occur until
    >> something forces a post back. Like a button clicked.
    >>
    >> Suppose it's important to me, that when the button is clicked, if the
    >> events are to run, that textBox1.TextChanged runs before
    >> textBox2.TextChanged .
    >>
    >> Or textBox1.TextChanged runs before button1.Click.
    >>
    >>
    >> Can I control such things?
    >>
    >>
    >> Thanks
     
    AAaron123, Feb 11, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chris
    Replies:
    4
    Views:
    490
    chris
    Feb 16, 2007
  2. =?Utf-8?B?Y2hyaXM=?=

    Events of child gridview are not executed

    =?Utf-8?B?Y2hyaXM=?=, Feb 16, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    542
    =?Utf-8?B?Y2hyaXM=?=
    Feb 20, 2007
  3. stef mientki
    Replies:
    13
    Views:
    695
    stef mientki
    Oct 20, 2007
  4. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    428
    Chris
    Aug 30, 2005
  5. Seth Williams

    Sequence of Events for Custom Control

    Seth Williams, Mar 31, 2008, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    152
    Seth Williams
    Apr 2, 2008
Loading...

Share This Page