473,789 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TextBox Focus Lost when using AJAX UpdatePanel

Hi,

I have a series of textboxes on an aspx page.

These textboxes are within an UpdatePanel.

On the OnTextChanged Event of each textbox I do some calculations in my
codebehind and update some Textboxes with total values.

However, on the OnTextChanged Event the focus is lost i.e. when my user
tabs out of textbox 1 and I do some calculations the focus is lost from
textbox2.

Anyone know how I can overcome this?

Thanks in Advance.

Mar 14 '07 #1
0 2303

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

Similar topics

13
4337
by: Paul Slavin | last post by:
I have a textbox bound to a dataview, when I update the text in the textbox no changes take place in the underlying dataset. Why is this?? any answers appreciated, as to due to the underlying structure of the datasets, i.e lots of child tables etc, I cannot use bindingcontext
33
3982
by: me2tech | last post by:
Hi, This is ram. I am developing a page(usereg.jsp) with two textboxes one for username and another for email. Since i am using this page in main.jsp using Ajax, I am removing the body part in usereg.jsp. Now i need to focus the cursor in first textbox of usereg.jsp. Since there is no body tag in this jsp i cannot call onload="document.formname.textboxname.focus()". But i need the focus in textbox when i call this page in main.jsp.
6
4020
by: HockeyFan | last post by:
I'd like to have an AJAX textbox that after the user fills in, will auto-fill another textbox on the page without having a postback occur. It doesn't have to do any filtering or any other thing like that. I'm fairly experienced with ASP.Net, but new to AJAX. Please help if you can. Thanx.
2
2799
by: artemis1101 | last post by:
Good day, I have a C# asp.net ajax-enabled website that uses an update panel to dynamically update some controls on my page - one of the controls that it updates is a date/time drop down list, which is dynamically generated based on the date/time that a user selects from a calendar control on my page. I've got the whole thing wrapped in an UpdatePanel, and it seems to work great - until you start entering text into one of the TextBox...
0
2712
by: mackpag | last post by:
i want to save the data which is written in textbox when i exit from the textbox that means when i lost the focus from textbox. the textbox is in the grid. so how to do that. the grid is in UpdatePanel of AJAX. sending the source <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> ...
1
1398
by: =?Utf-8?B?T2xlZw==?= | last post by:
Hi, I'm wondering if anybody using ajax extensions where UpdatePanel tag is used in addition to existing ajax implementation where UpdatePanel wasn't used yet. So, there is already a web project where ajax is used, but not with UpdatePanel. (without extensions) Would I be able to use UpdatePanel tag along with the current implementation? Or there is a contradiction in older and newer ajax styles? It's all .NET 2.0 environment. Thanks,
5
1300
by: Max | last post by:
I tried the following with Web Dev 2008 with -and- without Ajax Extension 3.5 - using IE 7 I reduced my webform1 to a Scriptmanager and an Updatepanel with 2 textbox and a button. I type something in textbox1, press the button and a function runs and completes textbox2. Then I hyperlink to webform2, come back, and not only textbox2 is blank (one can thinks it was dynamically updated...) but also textbox1 is empty ! What mistake I'm...
4
5864
by: foolmelon | last post by:
Before AJAX, we were able to focus a cell in a gridview during a fullpage postback. After putting the gridview inside an UpdatePanel, we cannot focus a cell in this gridview anymore. Does anybody know if it is possible to make such focus? Thanks! Bill
5
1880
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm running the following: ScriptManager.RegisterClientScriptBlock in my OnInit event. well the javascript function that it runs assigns a value to a webserver textbox control. after it's finish running this script it control comes back to the server-side and when i try to inspect the textbox it is still empty, however when the page finishes loading the correct value appears in the textbox.
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9499
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10374
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10121
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5539
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4076
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2898
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.