.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

Ok kind of just getting started with MVC and teaching myself the ropes. There is some wierd behavior i'm getting from the tagbuilder class:

PageURL is just a simple:Func<int,string> pageURL = x=>"Page" + x;

When i look at the ToString of the TagBuildre class right after i initialize the class it looks correct:<a></a>Things start to get wierd right after i call MergeAttribute().

When i output the string i see:

<a href=\"Page1\"></a>

Where is the two "\" characters comming from? if i hover over the tagbuilder i get the following:

"{<a href="Page1"></a>}" which looks correct.  

The placement of the "\" characters seem wierd also. One in the quotes and one outside the quotes. Maybe if i seen "\Page1\" it would make more sense. 

I did a&n

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend