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 3430030
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:09:17+00:00 2026-05-18T07:09:17+00:00

Another beginner question, I’m afraid… I was wondering if someone could tell me the

  • 0

Another beginner question, I’m afraid…

I was wondering if someone could tell me the easiest and most efficient way of getting the fully qualified domain name (e.g. http://www.google.com) from a UrlEncoded string in ASP.Net (C#).

For example:

 http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsome%20things%20i%20searched%20for

Would give me:

 www.google.com

(Or basically anything where I can check the domain to make sure it’s correct.)

I’m guessing the first step might be to UrlDecode, but since this is how I’m getting the string, I thought I’d mention it incase it’s easier Encoded.

Thanks for any help!

  • 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-18T07:09:18+00:00Added an answer on May 18, 2026 at 7:09 am
    (new URI(System.Web.HttpServerUtility.UrlDecode(url))).Host
    

    For reference:

    URI – http://msdn.microsoft.com/en-us/library/system.uri.aspx

    HttpServerUtility – http://msdn.microsoft.com/en-us/library/6196h3wt.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have another beginner's question that hopefully someone can help with. I'm trying to
Another lift beginner question: I want to render a HTML Definition List in a
Ok I have another question and I'm a beginner at this. I have this
This is an absolute beginner's question (sorry), but I was wondering how to commit
This is a beginner's question I'm afraid: I have an UIText which covers the
I have a beginner's question. I was wondering about the level of subviews and
Another beginner question for ASP.NET: I'm starting an ASP.NET project in Visual Studio 2008,
I apologize for yet, another beginner question. I have a .Net background and this
I'm beginner in MVC3, and I want to get a value from an another
Another poster asked about preferred syntax for infinite loops . A follow-up question: Why

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.