PC Review


Reply
Thread Tools Rate Thread

How do I get the ID of the textbox that has focus on an ASP.NET WebPage

 
 
dougmcmurtry@gmail.com
Guest
Posts: n/a
 
      28th Mar 2008
I have a web app that is going on a touch screen computer with no
keyboard, so I have to allow them to enter numeric data into text
fields through a UserControl that I built. All I need to find is which
textbox control on the page has focus so I know where to put the
input. Any ideas? Thanks all......
 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      28th Mar 2008
Determine the type of each object raising each event on the form. If its a
TextBox object get the ID.

<%= Clinton Gallagher

<(E-Mail Removed)> wrote in message
news:3a06e787-284c-41c3-8fd8-(E-Mail Removed)...
>I have a web app that is going on a touch screen computer with no
> keyboard, so I have to allow them to enter numeric data into text
> fields through a UserControl that I built. All I need to find is which
> textbox control on the page has focus so I know where to put the
> input. Any ideas? Thanks all......


 
Reply With Quote
 
dougmcmurtry@gmail.com
Guest
Posts: n/a
 
      28th Mar 2008
Great, thanks so much! I'll give that a try, but there might be a
stumbling point since I am using AJAX. Any suggestions?
 
Reply With Quote
 
clintonG
Guest
Posts: n/a
 
      29th Mar 2008
AJAX is all client-side code and has nothing to do with what you need to do
with server-side code. What are you working on, a digital signage project?


<%= Clinton Gallagher



<(E-Mail Removed)> wrote in message
news:74417b7a-df96-4a9a-ada6-(E-Mail Removed)...
> Great, thanks so much! I'll give that a try, but there might be a
> stumbling point since I am using AJAX. Any suggestions?


 
Reply With Quote
 
clintonG
Guest
Posts: n/a
 
      29th Mar 2008
I erred. Yes, in fact your client-side code will be written in JavaScript to
get the focus of the control on the client.

<%= Clinton Gallagher

<(E-Mail Removed)> wrote in message
news:74417b7a-df96-4a9a-ada6-(E-Mail Removed)...
> Great, thanks so much! I'll give that a try, but there might be a
> stumbling point since I am using AJAX. Any suggestions?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get text message of textbox in a webpage vutaviva@gmail.com Microsoft Dot NET Framework 1 25th Jun 2006 01:42 PM
Focus On TextBox A.M Microsoft ASP .NET 3 1st Jun 2004 12:14 PM
TextBox.Focus() doesn't focus kwarnke Microsoft Dot NET Framework Forms 3 19th May 2004 10:50 PM
assign textbox value to jump to webpage =?Utf-8?B?dHlrZQ==?= Microsoft Access Macros 1 26th Jan 2004 04:14 PM
set focus in a ASP.NET webpage Remco Groot Beumer Microsoft ASP .NET 2 13th Nov 2003 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:20 PM.