In order to resolve your issue, please change it to .NET4.0 and see whether this issue exists or not.
If it works in .NET4.0 but does not work in .NET4.5, it is known as compatibility issue. If it’s a compatibility issue, Please email on netfx45compat at Microsoft dot com with following information.
Code that reproduces the problem.
Operating System
If it doesn't work in .NET4.0, please share the corresponding code about the issue which can help us reproduce this issue.
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
i was able to identify the cause of the error. I named my solution templateBuilder without knowing that .NET has a namespace with the same name. This was the cause of the problem. Thanks for you response though.
ocsJack
Member
27 Points
31 Posts
Help with Error
Nov 05, 2012 05:26 PM|LINK
working off the Getting Started with ASP.NET 4.5 Web Forms tutorial on this site.
I changed the name from WingTip Toys to my solutions name Template Builder.
The below error happens and i dont know why or how to fix it.
CS0426: The type name 'Models' does not exist in the type 'System.Web.UI.TemplateBuilder'
Source File: c:\Users\JPetersen\Documents\Visual Studio 2012\Projects\TemplateBuilder\TemplateBuilder\Site.Master Line: 85
<ItemTemplate> Line 84: <b style="font-size: large; font-style: normal"> Line 85: <a href="/BottleCodeList.aspx?id<%#: Item.CompanyID %>"> <%#:Item.Name %></a> Line 86: </b> Line 87: </ItemTemplate>
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: Help with Error
Nov 08, 2012 01:21 AM|LINK
Hi,
In order to resolve your issue, please change it to .NET4.0 and see whether this issue exists or not.
If it works in .NET4.0 but does not work in .NET4.5, it is known as compatibility issue. If it’s a compatibility issue, Please email on netfx45compat at Microsoft dot com with following information.
If it doesn't work in .NET4.0, please share the corresponding code about the issue which can help us reproduce this issue.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
ocsJack
Member
27 Points
31 Posts
Re: Help with Error
Nov 08, 2012 02:18 PM|LINK
i was able to identify the cause of the error. I named my solution templateBuilder without knowing that .NET has a namespace with the same name. This was the cause of the problem. Thanks for you response though.
RameshRajend...
Star
7983 Points
2099 Posts
Re: Help with Error
Nov 08, 2012 02:31 PM|LINK
<a href='<%#"~/BottleCodeList.aspx?id="+Eval("Item.CompanyID")%>'><%#Eval("Item.CompanyID")%></a>Thank u