473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

TextBox AutoPostBack event not firing correctly

Hi

I've got a TextBox on my WebForm with it's AutoPostback
set to true, and an event handler created for the
TextChanged event.

I would expect this event to be fired when the user types
any character into the textbox. However, the event is
only firing when the users enters text and THEN moves to
another control on the page.

Is this behaviour by design?

Thanks

Ben Fidge
Nov 18 '05 #1
2 2890
AFAIK yes,

It would be far too costly anyway to make a server round trip each time the
user press a key ie the TextChanged event fire when you are reasonably sure
that a sequence of changes is over (ie moving to another control).

Patrice

--

"Ben Fidge" <an*******@discussions.microsoft.com> a écrit dans le message de
news:72****************************@phx.gbl...
Hi

I've got a TextBox on my WebForm with it's AutoPostback
set to true, and an event handler created for the
TextChanged event.

I would expect this event to be fired when the user types
any character into the textbox. However, the event is
only firing when the users enters text and THEN moves to
another control on the page.

Is this behaviour by design?

Thanks

Ben Fidge


Nov 18 '05 #2
I totally agree, and took the precaution of switching off
AutoPostBack after the initial event is fired.

Thanks

Ben

-----Original Message-----
AFAIK yes,

It would be far too costly anyway to make a server round trip each time theuser press a key ie the TextChanged event fire when you are reasonably surethat a sequence of changes is over (ie moving to another control).
Patrice

--

"Ben Fidge" <an*******@discussions.microsoft.com> a écrit dans le message denews:72****************************@phx.gbl...
Hi

I've got a TextBox on my WebForm with it's AutoPostback
set to true, and an event handler created for the
TextChanged event.

I would expect this event to be fired when the user types any character into the textbox. However, the event is
only firing when the users enters text and THEN moves to another control on the page.

Is this behaviour by design?

Thanks

Ben Fidge


.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
2
by: rdb | last post by:
VB.NET web program with a webform w/2 dropdownlistboxes, set to AutoPostBack TRUE, selection in either dropdown fires the SelectedIndexChanged events correctly UNTIL I navigate to second webform in...
4
by: dhnriverside | last post by:
Hi guys I'm trying to get ASP.NET to do something when someone starts typing in my textbox, but it doesn't want to fire the codebehind! I've got AutoPostBack set to to True on my textbox, and...
4
by: MattB | last post by:
Hi. I'm working on an intranet application that requires a user to input information about themselves. I have a user control with a couple of textboxes that I want the user to enter their weight...
11
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and...
6
by: John Smith | last post by:
I have my <asp:TextBox> inside one of DataGrid's columns. I haven't set AutoPostBack=True. When I hit the ENTER button, my page "refreshes" (I belive that PostBack was performed - however not...
9
by: zdrakec | last post by:
Hello all: Clearly, I'm not getting it! Here is the scenario: On a web page, I have two list boxen and a text box. The first listbox is populated at page load time (if it is not a postback)....
0
by: Syed81 | last post by:
Hi All, I have used one textbox inside datagrid's itemtemplate.During its textchanged event i have did some calculations in code behind using add handler.I have set autopostback=true.But its...
4
by: =?Utf-8?B?UmVuYXVkIExhbmdpcw==?= | last post by:
Hello, I have a strange yet very simple problem with the asp.net Textbox web control. On an empty asp.net page, add a single asp:TextBox control with Autopostback=false with nothing else on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.