473,326 Members | 2,813 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,326 software developers and data experts.

Pb with the method Focus

Hi there,

What could explain that although I set the focus on a TextBox with the Focus
() method in my site, this textbox has the focus only the first time the
page is constructed ? The page is refresh periodically with an Ajx Timer in
a UpdatePanel, and the TextBox is inside this UpdatePanel. The Timer calls
explicitely the Focus method, however the focus is on a button in the same
UpdatePanel.

Thanks

Sep 14 '07 #1
2 1393
updatepanels probably does not support the focus command. you will need
to do it in javascript using the endRequest event of the PageRequestManager.

-- bruce (sqlwork.com)
Oriane wrote:
Hi there,

What could explain that although I set the focus on a TextBox with the
Focus () method in my site, this textbox has the focus only the first
time the page is constructed ? The page is refresh periodically with an
Ajx Timer in a UpdatePanel, and the TextBox is inside this UpdatePanel.
The Timer calls explicitely the Focus method, however the focus is on a
button in the same UpdatePanel.

Thanks
Sep 14 '07 #2
Hi Bruce,
"bruce barker" <no****@nospam.coma écrit dans le message de news:
%2****************@TK2MSFTNGP05.phx.gbl...
updatepanels probably does not support the focus command. you will need to
do it in javascript using the endRequest event of the PageRequestManager.
Yes you should be right.

Many thanks
Sep 16 '07 #3

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

Similar topics

5
by: Stefano | last post by:
Hi, i want set focus element with element.focus() but i have always this exception: "focus() is not a function" Can you help me? Thanks I use Mozilla
10
by: Christian Pické | last post by:
Hi, I want to set the focus to a specific textbox. When using somthing like textbox1.Focus() it doesn't do anything. Am I missing something here? Regards, Christian
3
by: TC | last post by:
Hello, I am using the script below to open a new window and once opened, redirect to that open window from the original window: private void btnNewPDFWindow_Click(object sender,...
5
by: Gary Vidal | last post by:
I have a client side Javascript which checks an OrderQuantityField against a hidden Textbox of the Minimum Order Quantity. I dont want to do validation on a postback. I would like to be able to...
2
by: Cindy M -WordMVP- | last post by:
Hi all While working my way through a VB.NET exercise, I came across something that didn't do what the text said it should and I'm wondering if it's supposed to behave this way, or not (and...
3
by: jbsfe | last post by:
I have "Spilt" my database and the "lookup" and "seek" methods that previously worked, no longer do. I have learnd from reviewing the posts that the "lookup" and "Seek" methods cannot be used on...
3
by: Fred | last post by:
In the enter event of a combo box, how to know how this control got the focus : - by clicking on it with the mouse - with the tab key - with the Select method of the control class I will want to...
2
by: amit | last post by:
Hello group, I'm having a problem with an HTML element performance. When I use focus() method to jump to an input text. I realize the cursor is on waiting on the 2nd column waiting for user to...
1
by: ravikumar2007 | last post by:
I am working with .NET 3.5 framework within an WPF application. I have a windows application where for a textbox, I have defined the lost focus event. I need to call the Focus() method of any other...
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.