Two ways of doing this.
1) You could use the String.Substring [myStr.SubString(myStr.Length-4)] to
get the last N number of characters and compare it with the variable.
-- or --
2) Use the String.EndsWith method.
"Selen" <sk*****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a code
strDocExt=CString.Right(txtFileContents.PostedFile .FİleName,4).ToLower();
in c# CString.Right equal what?
Thanks.