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

  • Home
  • SEARCH
  • 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 9116143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:36:03+00:00 2026-06-17T04:36:03+00:00

What is the correct to format a string as a URL? i.e. ‘google.com’ becomes

  • 0

What is the correct to format a string as a URL?

i.e.
‘google.com’ becomes ‘http://www.google.com’ and ‘www.stackoverflow.com’ becomes ‘http://www.stackoverflow.com.’

I imagine it is something using the Uriclass but from what I can tell, new Uri(mystring).AbsoluteUri doesn’t ‘format’ the string.

  • 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-06-17T04:36:05+00:00Added an answer on June 17, 2026 at 4:36 am

    You can use the UriBuilder class to construct the URL. It will add HTTP:// as a default scheme if the string doesn’t specify one.

    I found this out from an answer to this question Add scheme to URL if needed

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

Sidebar

Related Questions

I'm using .NET 4 and getting Input string not in correct format error when
Say, I have a string that I need to verify the correct format of;
I am getting an exception error, Input string was not in a correct format.
I need a library that can only format a correct HTTP response (without creating
My code gives the following error: Input string was not in a correct format.
I'm trying to get the following code working: string url = String.Format(@SOMEURL); string user
Which is the correct doxygen format for PHP comments? #1 /** Create HTML for
What is the correct way to format the document.formToSubmit.submit() line? var formToSubmit = 'postcomment'
I have to correct an existing C file which has a bunch of format
I need to pass a url string from the view to the controller, a

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.