blaBla\John.Boy
string _uName = id.Name.Split('\\')[1];
string _userName = _uName.Replace('.', ' ');
will return: "John Boy"
I want to use the replace, but with a replaceAll.
I have string url="Account/WindowsLogin.aspx?ReturnUrl=%2fMemberPages%2fcustomerDataStorePortal.aspx"
from this I want to create string NewUrl="/MemberPages/customerDataStorePortal.aspx"
so get data after the '=' and replace '%2F' with '/'
so far:
string redirectUrl1 = redirectUrlOLD.Split('=')[1];
string redirectUrl = redirectUrl1.Replace('%2F', '/');
is flagging %2F as too many characters