C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




ho can i get "exp.doc" from c:\temp\exp.doc using split function?


Posted Date: 01 Dec 2006      Total Responses: 1

Posted By: saroj kumar sahoo       Member Level: Gold     Points: 2


mainly how can i get the file+extesion name from the total file validation?
let us take
"string=c:\temp\sss.doc "
from thsi string i want only
sss.doc how can i use sss.doc?using split function.
pls send the code




Responses

Author: sudhajosyula    01 Dec 2006Member Level: GoldRating:     Points: 2
int a=string.LastIndexOf(string);
string fileName=string.substring(0).tostring();
Response.write(fileName);



Post Reply
You must Sign In to post a response.
Next : how to call java script function and check validation
Previous : Use of unassigned local variable dr
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

efax

Contact Us    Privacy Policy    Terms Of Use