Avoid Case Sensitive in Silverlight QueryString

In Silverlight and when querying parameters from the query string on the current page's URL you will notice that the keys are case sensitive, to bypass this issue use the below code: var queryParams = new Dictionary<string, string>(HtmlPage.Document.QueryString, StringComparer.InvariantCultureIgnoreCase); if (queryParams.ContainsKey("svcid")) { //Your code here. }

No Comments

Add a Comment

As it will appear on the website

Not displayed

Your website