I found the solution.
I was attempting to assign the control outside of a method. Oddly enough, this works in another app that I did using VB. I changed the line as shown below and moved the assignment inside of Page_Load:
protected Header ucHeader;
private void Page_Load(....)
{...
I need to programatically load a control so that I can set properties and have it rendered appropriately. However, when I attempt to LoadControl, I get the following error:
"An object reference is required for the nonstatic field, method, or property...
In case anyone runs into this error, I've found at least one answer to the problem. In my case, there was dynamic sorting in the template that could result in a blank name being specified for the sort select. In the prior version of XSL/XML, the error was ignored. The .net version barfs on it...
I have an xslt stylesheet with the following params defined:
<!-- Declare filter parameters. -->
<xsl:param name="filterInactive">true</xsl:param>
<xsl:param name="filterTimeframe">0</xsl:param>
I attempt to populate them using the code below...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.