A neat way to build query string in ASP.NET Core #aspnetcore

added by DotNetKicks
9/6/2018 1:39:18 PM

2 Kicks, 127 Views

Creating query string in code can lead to errors as you have to deal with strings, ampersand and question marks. Fortunately, ASP.NET Core has a static class QueryHelpers which has a function called AddQueryString offers a neat way to build query string in ASP.NET Core. The AddQueryString method has 2 definitions.


0 comments