I have implemented a helper extension method on an interface that my Master page implements called "Url" to create URLs using business logic.
This allows me to do this on my Master markup...
<a href="<%=this.Url("/mypage.aspx", forceHttps: true)%>">Click Me Secure</a>
<a href="<%=this.Url("/mypage.aspx")%>">Click Me Not Secure</a>
As you can infer from the above, I have an argument on the Url method called "forceHttps" that uses a default value.
This works great on the Master page.
The problem I am having is that pages that use the Master are showing validation errors stating that the Url method does not have an overload with 1 arguments.
Is there a way around this ?
EDIT: This is a non-issue. It turns out that there was a Virtual Directory under the parent site in IIS that was causing the problem...not sure why. Once I removed it, the problem went away.