作者在 2007-04-22 23:43:00 发布以下内容
if(this.TextBox1.Text=="")
{
if(HttpContext.Current.Request.Browser.JavaScript)
{
this.Page.RegisterStartupScript("sf","<script language='javascript'>document.getElementById('TextBox1').focus();</script>");
}
}
{
if(HttpContext.Current.Request.Browser.JavaScript)
{
this.Page.RegisterStartupScript("sf","<script language='javascript'>document.getElementById('TextBox1').focus();</script>");
}
}