很感兴趣的问题,经常被人忽视,却很常用
我想问的是:
怎么在验证控件显示错误信息的时候,换成其他控件显示,我说的不是ValidationSummary.比如TextBox.Text. 或者label.Text之类。
------解决方案--------------------最的的方法就是用js来写了。如:
if(LocationCode== "-1 ")
msg += "Please select a location!\n ";
if(CraftDescription== " ")
msg += "Please enter Craft Description!\n ";
if(CraftRule == " ")
msg += "Please enter Craft Rule! ";
if(msg!= " ")
{
document.all.ShowResult.innerText = msg;
return;
}
------解决方案--------------------ErrorMessage= " <input value=error/> "