focus on web control

P

powerranger

I'd like to know if there is a way to set focus on a control using C#
instead of javascript. Thanks
 
A

Alessandro Zifiglio

Focus can only be set client side. C# is server side and it cant be done
with C# alone. You could however use a combination of both server side C#
and clientside javascript to give you better control and how you set focus.
Theres already a lot of articles out there, and free asp.net controls that
set focus. You might want to try them out or write your own.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top