日期:2014-05-18  浏览次数:20880 次

這個怎么改?
[HttpException   (0x80004005):   The   ControlToValidate   property   of   'xs_tbx_id '   cannot   be   blank.]
      System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid()
      System.Web.UI.WebControls.BaseValidator.get_PropertiesValid()
      System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter   writer)
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)
      System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter   writer)
      System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter   writer)
      System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter   output)
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)
      System.Web.UI.Control.Render(HtmlTextWriter   writer)
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)
      System.Web.UI.Page.ProcessRequestMain()
小弟新手﹐這個怎么改?

------解决方案--------------------
'xs_tbx_id ' 这个属性不能空吧!
------解决方案--------------------
-_-#,放这个控件的目的你总该知道吧,也就是说它是用来验证哪个控件内容的

比如说你要验证的是TextBox1的内容,那么选中xs_tbx_id这个控件,在右侧属性窗口里有个ControlToValidate属性,把它的值设为TextBox1就可以了