I would like to parse the values from aspx pages, both what is passed before the ? and after it? So, what is the C# function that allows me to parse that out?
I would like to do something like:
var pageType = parameter.trimBefore?();
var pageString = parameter.trimAfter?();
Thanks for any advice.
Try the Split method in string. You provide the delimiter, ?, in this case, and the method will divide the string into the string that comes before the character and after the character.