H
hirebrian
If you run accross the error message:
"Element '%' is not a known element. This can occur if there is a
compilation error in the Web site"
where '%' is the value of the tagName attribute on a web user control
you have delcared in your web.config file, then you might try
prefixing your src attribute value with the ~ (tilda) character. As
you probably know, this character tells ASP.NET to resolve the path
from the application root.
So instead of using:
<add tagPrefix="MyPrefix" tagName="MyName" src="/UserControls/
MyControl.ascx" />
use:
<add tagPrefix="MyPrefix" tagName="MyName" src="~/UserControls/
MyControl.ascx" />
A few people have posted about this and hadn't found a solution.
Anyway, it solved my problem and figured I would post it.
Thanks,
BJS
"Element '%' is not a known element. This can occur if there is a
compilation error in the Web site"
where '%' is the value of the tagName attribute on a web user control
you have delcared in your web.config file, then you might try
prefixing your src attribute value with the ~ (tilda) character. As
you probably know, this character tells ASP.NET to resolve the path
from the application root.
So instead of using:
<add tagPrefix="MyPrefix" tagName="MyName" src="/UserControls/
MyControl.ascx" />
use:
<add tagPrefix="MyPrefix" tagName="MyName" src="~/UserControls/
MyControl.ascx" />
A few people have posted about this and hadn't found a solution.
Anyway, it solved my problem and figured I would post it.
Thanks,
BJS