Monday, June 16, 2014

Dealing with a C# ambiguous reference in what is probably the wrong way.

I made a web user control. Within it I broke into <%# ... %> and inside of this I had a reference that had a squiggly red line under it. I put my mouse pointer over it and got a tooltip which read "Ambiguous reference:" followed by the same namespace listed twice and finally followed by "match" to which I could find no solution. This speaks to the same problem, but it didn't help me. I ended up just using the <%# ... %> to call a method in the code behind which returned what I needed. In the code behind's method I then referenced the namespace which was otherwise ambiguous in the ASP.NET markup. Whatever.

No comments:

Post a Comment