May 03, 2006 01:51 PM|ryanchopps2|LINK
I have created a class to set the focus to a teext box. When i move the class to my App_code folder for my application so it can be reused i get the error: "The name 'ClientScript' does not exist in the current context"
The error is being caused by ClientScript.RegisterStartupScript .
I have tried prefixing it with HttpContext.Current but get an error that
ClientScript.RegisterStartupScript is not a class of
Please help, this is doing my head in!
scriptClientId = controlToFocus.ClientID;
ClientScript.RegisterStartupScript( // Cause of error