How can I retrieve the complete url of the current webpage, including http? For example: https://stackoverflow.com/
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Maybe you mean to get the url of the current page?
Use:
Request.Url.ToString()Or if you want to convert a relative Url to the absolute path, I beleive the code is something like this: