Total Pageviews

3 Sept 2015

Encode and decode field names from display name to internal name

Encode and decode field names from display name to internal name

Credits to Stefan Bauer


private string DecodeInternalField(string toDecode)
{
    if (toDecode != null)
    {
        string decodedString = toDecode.Replace("_x", "%u").Replace("_", "");
        return HttpUtility.UrlDecode(decodedString);
    }
    else
    {
        return null;
    }
}

No comments:

Post a Comment