Results 1 to 3 of 3

Thread: Breaking Text Apart

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    104

    Breaking Text Apart

    I have a minor problem with a C# web app. I am trying to retrieve just the application name that an exception has occured. Basically when you retrieve the application path it comes up as the whole path. I need this broken up where just the application name appears.

    D:\Inetpub\wwwroot\AppError

    I just want AppError to appear. The problem is this has to dynamically do this because it might not be a web application sometimes.

    Thanks in advance,
    Pol

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Breaking Text Apart

    System.IO.Path.GetFileName()

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    104

    Re: Breaking Text Apart **RESOLVED**

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width