C # ASP.NET: dynamically constructing url query string

I need to dynamically build the url by adding a new parameter to the current url.

I know how to do this ultimately by getting the current url and checking if there is any QueryString if there is no "?" if yes, add "&". Also check that the parameter already exists. If yes, change the value.

But is there any function in .NET for this? Like Request.QueryString.Add

Thank.

+3
source share
1 answer

, .Net , , url ?, . , .

+1

Source: https://habr.com/ru/post/1769072/


All Articles