By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,569 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

is there a got focus event for a textbox?

P: n/a
Hi, I am extremely new to .net, I am actually working on my first
application so I apologize if there is an obvious answer.... Is there
a got focus event that fires when a user clicks on a textbox? Upon
clicking on the textbox (which is disabled), I want a calendar control
to be displayed. Is this possible?

Thanks.

Jun 27 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Joe
In javascript: element.focus()

http://ajax.asp.net/ajaxtoolkit/Calendar/Calendar.aspx has a good example of
a calendar (not to mention several others) doing what it sounds like you are
looking for.

<mb******@hotmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
Hi, I am extremely new to .net, I am actually working on my first
application so I apologize if there is an obvious answer.... Is there
a got focus event that fires when a user clicks on a textbox? Upon
clicking on the textbox (which is disabled), I want a calendar control
to be displayed. Is this possible?

Thanks.

Jun 27 '07 #2

P: n/a
onfocus is the client-side event.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

<mb******@hotmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
Hi, I am extremely new to .net, I am actually working on my first
application so I apologize if there is an obvious answer.... Is there
a got focus event that fires when a user clicks on a textbox? Upon
clicking on the textbox (which is disabled), I want a calendar control
to be displayed. Is this possible?

Thanks.

Jun 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.