Skip to content

Instantly share code, notes, and snippets.

@donma
Created February 12, 2025 03:42
Show Gist options
  • Select an option

  • Save donma/7e6c285971f5601e90f769daaa2ce93c to your computer and use it in GitHub Desktop.

Select an option

Save donma/7e6c285971f5601e90f769daaa2ce93c to your computer and use it in GitHub Desktop.
public string Result { get; set; }
public void OnGet()
{
var queryParams = Request.Query.ToDictionary(q => q.Key, q => q.Value.ToString());
foreach (var p in queryParams)
{
Result += p.Key + ":" + p.Value + "<br>";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment