You need to write out some javascript to do it. I'm frankly amazed that they didn't add in a feature that let's you do this. Web forms do it automatically when you are using smart navigation, but frankly I don't want some of the overhead and complications of that just to set focus.
Anywhoooo...
RegisterStartupScript(String.Format("<script language=""JavaScript"">document.getElementById("" {0}"").focus();</script>", <web form control to focus on>.ClientID)
Peter
------------------------------------------------------
Work smarter, not harder.
|