Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3758914
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:14:07+00:00 2026-05-19T10:14:07+00:00

Whats the equivalent to System.IO.Path ? I got this url: http://www.website.com/category1/category2/file.aspx?data=123 How can i

  • 0

Whats the equivalent to System.IO.Path ?

I got this url: http://www.website.com/category1/category2/file.aspx?data=123

How can i break this down, like

var url = ASPNETPATH("http://www.website.com/category1/category2/file.aspx?data=123");

url.domain <-- this would then return http://www.website.com

url.folder <-- would return category1/category2

url.file <-- would return file.aspx

url.queryString <-- would return the querystring in some format
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:14:08+00:00Added an answer on May 19, 2026 at 10:14 am

    Use the UriBuilder class:
    http://msdn.microsoft.com/en-us/library/system.uribuilder.aspx

    UriBuilder uriBuilder = new UriBuilder("http://www.somesite.com/requests/somepage.aspx?i=123");
    string host = uriBuilder.Host;     // www.somesite.com
    string query = uriBuilder.Query;   // ?i=123
    string path = uriBuilder.Path;     // /requests/somepage.aspx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using File::Spec on a Unix system to get the absolute path of a
What is COM+? What is equivalent for COM+ in .Net?
In classic asp you had the Global.asa file, what's the equivalent in .Net? I
What is the Java equivalent to this jar command: C:\>jar cvf myjar.jar directory I'd
Here is my .mm file #include windowmanagerutils.h #ifdef Q_OS_MAC #import </System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGWindow.h> QRect WindowManagerUtils::getWindowRect(WId windowId)
In the .NET base class library there is a class System.IO.Path for doing common
What’s the equivalent of System.Diagnostics.Debugger.Break(); in the Java world? Purpose: I have a tomcat
It's supposed to work like this in c#, but what's the equivalent in c++/cli?
The .NET Framework defines a System.IO.Path.GetTempFileName method, which guarantees that the temporary filename it
In .NET land, there's the tremendously useful System.Windows.Forms.CheckedListBox class. What is the equivalent in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.