Let's say I have a string:
string str = "09012013 Receipt 09012013 #12"
I want to do substring to return "Receipt 09012013 #12", I used substring:
var result = str.Substring(9);
and the result was only "Receipt 09012013"
I tried with other special characters (%,§,$ ...), it worked, substring returned "Receipt 09012013 %12", but with # and &, substring only returned "Receipt 09012013".
Any thoughts? Thanks.
EDIT
My code:
new NaviListItem("renameBtn", "showwaitingscreen", "akte/renameakte?entityid=" + Request["parentid"] + "&aktenkurzbezeichnung=" + Model.Node.Header.Substring(Model.Node.Ordnungsnummer.Length+1), "umbenennen.png", Model.RenameVisible, "Umbenennen", "Umbenennen"),
Substring
?MessageBox.Show(result)