// <param name="str_Prompt">提示信息</param>
// <param name="lbl_Error">Label控件id值</param>
public void JsIsNull(string str_Prompt,Label lbl_Error)
{
lbl_Error.Text="<script language=\"javascript\">alert('"+str_Prompt+"');</"+"script>";
}
二.
// <param name="lbl_Error">Label控件id值</param>
public void JsIsNull(string str_Prompt,Label lbl_Error)
{
lbl_Error.Text="<script language=\"javascript\">alert('"+str_Prompt+"');</"+"script>";
}
// <param name="str_Control_Name">检验控件id值</param>
// <param name="str_Form_Name">表单id值</param>
// <param name="str_Prompt">提示信息</param>
// <param name="lbl_Error">Label控件id值</param>
public void JsIsNull(string str_Control_Name,string str_Form_Name,string str_Prompt,Label lbl_Error)
{
lbl_Error.Text="<script language=\"javascript\">alert('"+str_Prompt+"');document."+str_Form_Name+"."+str_Control_Name+".focus(); document."+str_Form_Name+"."+str_Control_Name+".select();</"+"script>";
}
// <param name="str_Form_Name">表单id值</param>
// <param name="str_Prompt">提示信息</param>
// <param name="lbl_Error">Label控件id值</param>
public void JsIsNull(string str_Control_Name,string str_Form_Name,string str_Prompt,Label lbl_Error)
{
lbl_Error.Text="<script language=\"javascript\">alert('"+str_Prompt+"');document."+str_Form_Name+"."+str_Control_Name+".focus(); document."+str_Form_Name+"."+str_Control_Name+".select();</"+"script>";
}