Hi Richard,
If you're going to reference any sub controls in the FormView, make sure
the ID is correct and the Template (where the control reside ) is the
current active template( e.g if the FormView is in edit mode, we can only
reference controls in the edit template...).
Also, for setting focus on a certain control, we can also use the ASP.NET
2.0 page class's "SetFocus" method(Page.SetFocus) to set the page's focus
on a certain control. We can pass the control's reference into the funciton.
Please have a try on it and let me know if there is still any problem.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)