473,396 Members | 1,608 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,396 software developers and data experts.

Asp:net 2.0: Textbox focus issue

Hi,

I have a textbox on my asp.net 2.0 page with a grid and other controls. Now once the grid is populated, I notice that clicking on the textbox with the mouse does not make it editable (actually doesn;t allow the focus to come on the textbox).

I have to keep tabbing and only then does the focus come on the textbox.

FYI (though I don't think this could be the cause of the problem) I'm using an Atlas AutoCompleteExtender control associated with this textbox.

Can anyone shed some light on this? Thanks in advance.
Jun 15 '07 #1
3 1657
nateraaaa
663 Expert 512MB
Hi,

I have a textbox on my asp.net 2.0 page with a grid and other controls. Now once the grid is populated, I notice that clicking on the textbox with the mouse does not make it editable (actually doesn;t allow the focus to come on the textbox).

I have to keep tabbing and only then does the focus come on the textbox.

FYI (though I don't think this could be the cause of the problem) I'm using an Atlas AutoCompleteExtender control associated with this textbox.

Can anyone shed some light on this? Thanks in advance.
Have you tried using javascript .Focus method to give the textbox control focus?

Nathan
Jun 15 '07 #2
Hi,

I have a textbox on my asp.net 2.0 page with a grid and other controls. Now once the grid is populated, I notice that clicking on the textbox with the mouse does not make it editable (actually doesn;t allow the focus to come on the textbox).

I have to keep tabbing and only then does the focus come on the textbox.

FYI (though I don't think this could be the cause of the problem) I'm using an Atlas AutoCompleteExtender control associated with this textbox.

Can anyone shed some light on this? Thanks in advance.
You can try:
textbox1.SetFocus when the page loads


Hope this helps.

Thanks,
avidyarthi
Jun 16 '07 #3
Have you tried using javascript .Focus method to give the textbox control focus?

Nathan

I have tried using the focus method as well, but that is not helping either.

I also have a linkbutton when clicked, is supposed to clear the textbox contents. I have noticed that the textbox is still displaying the value from the AutoCompleteExtender (though when a breakpoint is set it shows an empty string).
Jun 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
5
by: Nedu N | last post by:
Hi All, I am facing a typical problem in my .NET application with the pop-up script messages. The thing is that its working fine when i run on my development machine but not running in expected...
4
by: Mad Scientist Jr | last post by:
i am trying to set focus to a specific control depending on the outcome of a validator control and it is not working. none of these methods are working to setfocus: 1....
12
by: CLEAR-RCIC | last post by:
Hi, I'm having problems setting focus to a textbox on a web user contol on an asp.net web page. The following script works on normal asp.net pages: <script language="javascript"> function...
0
by: Mad Scientist Jr | last post by:
I have a textbox that i am adding to (in codebehind of ASP.NET) and need to ensure that the focus is scrolled to the bottom of the textbox each time the page refreshes, and then set focus to a 2nd...
4
by: bienwell | last post by:
Hi, I have a problem and really need your help. In my web page ASPX, I have some text fields to accept data from users. I did form validation like this : <td class="dataTD" style="HEIGHT:...
3
by: vivela | last post by:
hi, I hope you could help me out on this one,cause I have been trying for 4 days to solve it,but couldn't quite get it right: I have an ASP textbox that should change the value in a dropdownlist....
4
by: akg | last post by:
Dear Friends, I have a problem. In one of my asp.net form, I have two buttons 'reset' and 'submit' and approx 20 textboxes. through javascript, I am setting focus on first textbox. What I am seeing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.