Link to home
Start Free TrialLog in
Avatar of Bobby X
Bobby XFlag for United States of America

asked on

Need help with C# string...


Can someone please tell me how come the following method is converting the "&" into "&amps"?   In other words, it's returning something like "" instead of "". This is being used in mvc 4.

using System.Web.Configuration;

public static string GetSiteUrl()
            return WebConfigurationManager.AppSettings["SiteUrl"] +

Many thanks in advance.
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial