hi there.
I am rendering controls using their path information then outputting the HTML. Something like...
Code:
StringBuilder sb = new StringBuilder();
HtmlTextWriter textWriter = new HtmlTextWriter(new StringWriter(sb));
UserControl objControl = (UserControl) LoadControl( inControlPath );
if (objControl != null)
objControl.RenderControl(textWriter);
return sb.ToString();
Now my problem is that in order to render a specific control the way I want to, I either need to call a specific function within the control or set a property on the control or pass a parameter to it...?
Does anyone have an idea how I can do this?
Appreciate it...