D
Darrin Boyd
I have developed a custom control and I want to allow the
user to insert code blocks in the .aspx (or .ascx) file to
set attributes on the control. For example, I want to
allow the user to do this:
<pwc:SortColumn HeadingText='<%=GetHeadingText(0)%
* The GetHeadingText(int colIndex) is a protected method
in the codebehind .cs file.
When the custom control is parsed, the default parser is
not seeing this attribute as a code block. It only sees
it as a string. Is there any way to use a custom
ControlBuilder to force the parser to evaluate this and
call the code behind method?
Thanks,
Darrin Boyd
(e-mail address removed)
user to insert code blocks in the .aspx (or .ascx) file to
set attributes on the control. For example, I want to
allow the user to do this:
<pwc:SortColumn HeadingText='<%=GetHeadingText(0)%
<pwc:SortColumn HeadingText='<%=GetHeadingText(1)%'/>
'/>
* The GetHeadingText(int colIndex) is a protected method
in the codebehind .cs file.
When the custom control is parsed, the default parser is
not seeing this attribute as a code block. It only sees
it as a string. Is there any way to use a custom
ControlBuilder to force the parser to evaluate this and
call the code behind method?
Thanks,
Darrin Boyd
(e-mail address removed)