Hi there,
Check out the methods "RegisterClientScriptBlock" and
"RegisterStartupScript" in the MSDN or VS.NET documentation.
These methods allow you to write JavaScript to the end of the main form
(RegisterStartupScript) or to the beginning (RegisterClientScriptBlock).
Inside the JavaScript block (make sure you include the script tag itself as
well) you can use stuff like:
document.forms(0).myTextBox.focus()
HtH and let me know (through this list) if you need more help with this.
Imar
At 03:56 PM 8/25/2002 +0430, you wrote:
>Hi there:
>
>How can I make focus() [JavaScript method] in ASP.NET.
>
>Tnx,
>Hovik.
>
>
>
>
>---
>
>ASP.NET 1.0 Namespace Reference with C#
>http://www.wrox.com/acon11.asp?ISBN=1861007442
>
>ASP.NET 1.0 Namespace Reference with VB.NET
>http://www.wrox.com/acon11.asp?ISBN=1861007450
>
>These books are a complete reference to the ASP.NET namespaces
>for developers who are already familiar with using ASP.NET.
>There is no trivial introductory material or useless .NET
>hype and the presentation of the namespaces, in an easy-to use
>alphabetical order ensures a user-friendly reference format.
>We provide in-depth coverage of all the major ASP.NET classes,
>giving you those real-world tips that the documentation doesn't
>offer, and demonstrating complex techniques with simple
>examples.
>
>---