Split String in ASP.NET with C#.NET
-
Dear friends, I have a string like "1-c:/programfiles/DOTNET/VBC/slad.jpg" I want two separate strings from this main string separated by '-' like, '1' and 'c:/programfiles/DOTNET/VBC/slad.jpg' . Can any one please help me in this as I am a trainee employee. Please do the needful. Thanks, regards, Dileep.
-
Dear friends, I have a string like "1-c:/programfiles/DOTNET/VBC/slad.jpg" I want two separate strings from this main string separated by '-' like, '1' and 'c:/programfiles/DOTNET/VBC/slad.jpg' . Can any one please help me in this as I am a trainee employee. Please do the needful. Thanks, regards, Dileep.
Hi, Please check the following articles on how to use the split method: http://dotnetperls.com/string-split[^] http://msdn.microsoft.com/en-us/library/system.string.split(VS.71).aspx[^]
Regards, Jamil