Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get the url without querystring values in asp.net?

Tags:

c#

asp.net

how to get the url without querystring values in asp.net?

like image 485
Blankman Avatar asked Jul 04 '10 17:07

Blankman


People also ask

How do I hide QueryString?

If you want to hide the query string in the URL, you need to use POST to deliver the ID in the body of the request instead of the query string.

Why do we use request QueryString in asp net?

A Query String Collection is used to retrieve the variable values in the HTTP query string. If we want to transfer a large amount of data then we can't use the Request. QueryString. Query Strings are also generated by form submission or can be used by a user typing a query into the address bar of the browsers.

Does URL include query string?

A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters.


1 Answers

Request.Url.GetLeftPart(UriPartial.Path)

like image 121
matt-dot-net Avatar answered Oct 16 '22 00:10

matt-dot-net