Is there a way to have following ?
CLASS
- ucComponent.ascx
- Component.cs
and then within Component.cs to dynamically create component, generate content and send to program which called it as finalized string.
CLASS tmpClass = new CLASS();
string strResult = string.Empty;
strResult = tmpClass.Generate();
Reason for this? I want to have unified components within class library and on client-end generate content and use CSS for styling.
Thanks
You cannot have user controls in a separate library, because of the ASCX markup file they need to sit in the web app project.