TextChanged Event doesn't fire WITH AutoPostBack = True???

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

  1. #1

    Default TextChanged Event doesn't fire WITH AutoPostBack = True???

    Hi, clearly I'm just not getting something here. I have an aspx form
    with ONE textbox and several label controls on it.

    I have the textbox set to AutoPostBack = True, but when I enter my
    text and hit ENTER, nothing fires.

    Oddly enough, this is similar to the button problem I've just posted
    as well. I use similar code for the textbox textchanged event, but it
    doesn't fire on that page either IF I remove the button (even though I
    don't have to press the button to fire the textchanged).

    PLEASE help me, this is killing my brain.

    Thank you!

    Kathy
    KathyB Guest

  2. Similar Questions and Discussions

    1. textchanged does not fire when datagrid is out of focus
      I have a paged editable datagrid (I'm using template column, not Editable Column)with 2 columns of labels, and two columns of textboxes. Outside...
    2. 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....
    3. how to fire a postback event
      Hi, All I design a composite custom control, which has three dropdownlists in it. I find as long as one of the dropdownlist control's id is...
    4. Dynamic Datagrid with TextBoxes Textchanged events wont fire
      Hi, I have the following code (using the VS IDE), which creates a datagrid with template columns (TextBoxes). The grid is bound to a dataview....
    5. Handling TextChanged event of nested TextBox
      You could specify separate event handler for the TextBox either by putting it on aspx (<asp:textBox OnTextChanged="method_name_goes_here"... />) or...
  3. #2

    Default Re: TextChanged Event doesn't fire WITH AutoPostBack = True???

    The autopostback will fire when the focus of the control is lost (ie.
    onBlur).
    The enter key will submit the page, but is different of browsers (which is
    why it doesn't really work with the onClick of buttons).

    --
    Philip Q
    Microsoft MVP [ASP.NET]
    [url]http://aspalliance.com/wisemonk/[/url]

    "KathyB" <KathyBurke40@attbi.com> wrote in message
    news:75e8d381.0307222049.39cd9024@posting.google.c om...
    > Hi, clearly I'm just not getting something here. I have an aspx form
    > with ONE textbox and several label controls on it.
    >
    > I have the textbox set to AutoPostBack = True, but when I enter my
    > text and hit ENTER, nothing fires.
    >
    > Oddly enough, this is similar to the button problem I've just posted
    > as well. I use similar code for the textbox textchanged event, but it
    > doesn't fire on that page either IF I remove the button (even though I
    > don't have to press the button to fire the textchanged).
    >
    > PLEASE help me, this is killing my brain.
    >
    > Thank you!
    >
    > Kathy
    Philip Q [MVP] Guest

  4. #3

    Default Re: TextChanged Event doesn't fire WITH AutoPostBack = True???

    Philip.

    I'm using ie 6 in an intranet exclusively...it should NOT be a browser
    issue.

    PLEASE help me...this will kill our use of asp.net for this project. Is
    not the ENTER key supposed to cause autopostback if autopostback is set
    to TRUE for that box???

    thanks. DESPERATE FOR ANSWER!

    Kathy

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

  5. #4

    Default Re: TextChanged Event doesn't fire WITH AutoPostBack = True???

    Further to this post, here is the html from the source when I run this
    aspx page in vs.net debug:

    <input name="txtScan" type="text" onchange="__doPostBack('txtScan','')"
    language="javascript" id="txtScan" style="width:144px;Z-INDEX: 107;
    LEFT: 63px; POSITION: absolute; TOP: 221px" />

    It certainly looks (to a novice...me) that it should be doing what it
    should...HOW to resolve this?

    Kathy

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

  6. #5

    Default Re: TextChanged Event doesn't fire WITH AutoPostBack = True???

    John,

    The code wouldn't help, it's just that it's not firing. I've tried
    adding a second textbox and if I hit tab, it fires. However, this
    textbox needs to fire on ENTER since I couldn't possibly tell uses to
    "remember" to hit tab...see what I mean.

    If it's a BUG, could someone please tell me a workaround? Getting
    desperate.

    Thanks.

    Kathy

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

  7. #6

    Default Re: TextChanged Event doesn't fire WITH AutoPostBack = True???

    Kathy,

    1) If I didn't think the code would help, I wouldn't have asked :-)
    2) I meant, "add the second text box and hit Enter in the first".

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    "Kathy Burke" <kathyburke40@attbi.com> wrote in message
    news:%23iRkb7QUDHA.3700@tk2msftngp13.phx.gbl...
    > John,
    >
    > The code wouldn't help, it's just that it's not firing. I've tried
    > adding a second textbox and if I hit tab, it fires. However, this
    > textbox needs to fire on ENTER since I couldn't possibly tell uses to
    > "remember" to hit tab...see what I mean.
    >
    > If it's a BUG, could someone please tell me a workaround? Getting
    > desperate.
    >
    > Thanks.
    >
    > Kathy
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    John Saunders 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