C# Lightswitch中未处理参数异常
在以下代码中引发参数异常错误。这是一个简单的代码,但我对c#还是新手 尝试使用此.FindControl(“PrintDocLetter1”)。IsReadOnly=trueC# Lightswitch中未处理参数异常,c#,visual-studio-lightswitch,C#,Visual Studio Lightswitch,在以下代码中引发参数异常错误。这是一个简单的代码,但我对c#还是新手 尝试使用此.FindControl(“PrintDocLetter1”)。IsReadOnly=true partial void PrintDocLetter1_CanExecute(ref bool result) { if (this.PatientsMasterItem.EligibileToParticipate != true) { this.Find
partial void PrintDocLetter1_CanExecute(ref bool result)
{
if (this.PatientsMasterItem.EligibileToParticipate != true)
{
this.FindControl("Print Doc Letter1").IsReadOnly = true;
}