Archives

Archives / 2014
  • 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. }