Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Lightswitch中未处理参数异常_C#_Visual Studio Lightswitch - Fatal编程技术网

C# Lightswitch中未处理参数异常

C# 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

在以下代码中引发参数异常错误。这是一个简单的代码,但我对c#还是新手

尝试使用此.FindControl(“PrintDocLetter1”)。IsReadOnly=true

 partial void PrintDocLetter1_CanExecute(ref bool result)
    {
        if (this.PatientsMasterItem.EligibileToParticipate != true)
        {


         this.FindControl("Print Doc Letter1").IsReadOnly = true;

        }