Skip to content

URL Arguments

Compare
Choose a tag to compare
@thebitbrine thebitbrine released this 25 Apr 16:57
· 6 commits to master since this release
56182ab

Fixed: passing URL arguments.
This is how you can parse your arguments from 'Context' correctly:

Dictionary<string, string> KeyArgPair = new Dictionary<string, string>();
if (Context.Request.RawUrl.Contains('?'))
    foreach (var Argument in Context.Request.RawUrl.Split('?', '&'))
        if(Argument.Contains("="))
			KeyArgPair.Add(WebUtility.UrlDecode(Argument.Split('=')[0]), WebUtility.UrlDecode(Argument.Split('=')[1]));