Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error if I put one method inside the other. Then what is the solution to that??? Pin
Scott Dorman17-Aug-07 4:38
professionalScott Dorman17-Aug-07 4:38 
Questionxml in to table to database Pin
kalyan_241616-Aug-07 21:50
kalyan_241616-Aug-07 21:50 
QuestionByte[] in webservice Pin
jayarajmrj16-Aug-07 21:08
jayarajmrj16-Aug-07 21:08 
AnswerRe: Byte[] in webservice Pin
Martin#16-Aug-07 21:20
Martin#16-Aug-07 21:20 
QuestionXMLSchema code snippet.....please help Pin
hemendravyas16-Aug-07 20:56
hemendravyas16-Aug-07 20:56 
Question"LastIndexOf" doubt Pin
jayarajmrj16-Aug-07 20:31
jayarajmrj16-Aug-07 20:31 
AnswerRe: "LastIndexOf" doubt Pin
N a r e s h P a t e l16-Aug-07 20:43
N a r e s h P a t e l16-Aug-07 20:43 
AnswerRe: "LastIndexOf" doubt Pin
Martin#16-Aug-07 20:43
Martin#16-Aug-07 20:43 
Hello,

to split a string, you would use the:
String.Split[^] method.

Dealing with filename and pathes you could use the fancy features of System.IO.Path[^] namespace!

In your case, the GetFileName[^] method will do what you need.
string strPath = @"D:\XML Tutorial(Basics).doc";
string strFileName = System.IO.Path.GetFileName(strPath ); /will return: 'XML Tutorial(Basics).doc'


Hope it helps!

All the best,

Martin

AnswerRe: "LastIndexOf" doubt Pin
Hessam Jalali16-Aug-07 20:46
Hessam Jalali16-Aug-07 20:46 
QuestionLoad Testing Pin
73amit16-Aug-07 20:10
73amit16-Aug-07 20:10 
AnswerRe: Load Testing Pin
amitkadamo16-Aug-07 22:53
amitkadamo16-Aug-07 22:53 
Questionexplicit deletion of object Pin
leopard44716-Aug-07 19:29
leopard44716-Aug-07 19:29 
AnswerRe: explicit deletion of object Pin
leoiser16-Aug-07 19:55
leoiser16-Aug-07 19:55 
GeneralRe: explicit deletion of object Pin
seeitsharper16-Aug-07 23:02
seeitsharper16-Aug-07 23:02 
AnswerRe: explicit deletion of object Pin
Scott Dorman17-Aug-07 4:46
professionalScott Dorman17-Aug-07 4:46 
QuestionRe:Displaying a form window from its (width,0) to (0,0) Pin
RameshwerE16-Aug-07 19:07
RameshwerE16-Aug-07 19:07 
AnswerRe:Displaying a form window from its (width,0) to (0,0) Pin
Assaf8216-Aug-07 19:12
Assaf8216-Aug-07 19:12 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
RameshwerE16-Aug-07 19:30
RameshwerE16-Aug-07 19:30 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
leoiser16-Aug-07 19:52
leoiser16-Aug-07 19:52 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
RameshwerE16-Aug-07 20:22
RameshwerE16-Aug-07 20:22 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
leoiser16-Aug-07 21:14
leoiser16-Aug-07 21:14 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
RameshwerE16-Aug-07 21:40
RameshwerE16-Aug-07 21:40 
GeneralRe:Displaying a form window from its (width,0) to (0,0) [modified] Pin
leoiser16-Aug-07 22:46
leoiser16-Aug-07 22:46 
GeneralRe:Displaying a form window from its (width,0) to (0,0) Pin
RameshwerE16-Aug-07 22:59
RameshwerE16-Aug-07 22:59 
Questionsearch for special sentence in a whole string? Pin
Assaf8216-Aug-07 18:58
Assaf8216-Aug-07 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.