Search code examples
asp.netascx

Linking to ascx file


I am utilizing controls in my asp.net application. I have a register tag the source of which needs to be dynamic. I am using the line below which functions correctly when the full path is specified but when I change it to the variable I get a parser error. Any idea how I can go about doing this?

Thanks


Solution

  • It might be better to use Load Control from the code behind of the aspx page.