Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No SetFocus?
Message
 
To
18/12/2002 00:38:24
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Miscellaneous
Thread ID:
00733986
Message ID:
00734065
Views:
18
>Is there no way to emmulate a SetFocus command in C# for a Web form control? I have seen one using java script, but want to stay pure C#.
>
>TIA

No, it has to be done via JavaScript. The HTML page is being run on the client's browser, so you're limited to the features of HTML and/or JavaScript. Standard HTML doesn't have any way of setting focus, but JavaScript does. Here's an article which describes how to do this:

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=438
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform