Subject: Protected method is not called
Date: 2008-11-12 06:47:03
From: rigo berto
Source: protected-method-not-called
----------------------------------------------------------------------

I have my C# code and DynamicTemplate code as follows:
myclass.cs

public class ClassA
{
    ...
    protected void MyMethodA()
    {
       ...
    }

    public void MyMethodB()
    {
       ...
    }
}


mytemplate.tpl

$myobj.MyMethodA()$ - $myobj.MyMethodB()$


in the template code above, myobj is an instance of the ClassA class. When generating output from mytemplate.tpl file, I got an error message in the output string: "Function "MyMethodA" not found or arguments are invalid.". Did I do sth wrong?

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index