how to get the url without querystring values in asp.net?
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.
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.
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters.
Request.Url.GetLeftPart(UriPartial.Path)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With