环境:Visual Studio 2008
语言:C#
程序:ASP.NET 其中TextBox1是.net控件。
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
TextBox1.Attributes.Add("onblur", "textboxonblur()");
}
}
在前台代码中:
<SCRIPT language="javaScript">
function textboxonblur()
{
}
</SCRIPT>我想实现当TextBox1失去焦点时,如果TextBox1输入为空,则Label2标签值的Visible属性变为True.
请问 function textboxonblur()
{
} 里面的代码该怎么写???????????????
语言:C#
程序:ASP.NET 其中TextBox1是.net控件。
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
TextBox1.Attributes.Add("onblur", "textboxonblur()");
}
}
在前台代码中:
<SCRIPT language="javaScript">
function textboxonblur()
{
}
</SCRIPT>我想实现当TextBox1失去焦点时,如果TextBox1输入为空,则Label2标签值的Visible属性变为True.
请问 function textboxonblur()
{
} 里面的代码该怎么写???????????????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货