Top "Namevaluecollection" questions

NameValueCollection is a .Net collection of string keys and string values that can be accessed either with by key or by the index.

How to Modify HTTP Header of a request using C#?

I was trying to modify a HTTP Header using C#. I tried to manipulate the Request.Headers on Page preinit …

c# http-headers namevaluecollection
XML response error: Invalid at the top level of the document

I am getting an error back and following the API manual I received on how to encode my request. Below …

c# xml namevaluecollection
XML serialization of a collection in C#

I have two classes as follows: public class Info { [XmlAttribute] public string language; public int version; public Book book; public …

c# xml-serialization namevaluecollection
How to create a custom section that behaves like an AppSettings section?

I want to have the following structure in my config: <MySection> <add key="1" value="one" /> <…

.net namevaluecollection
AppSettings fallback/default value?

ASP.NET For each appSetting I use, I want to specify a value that will be returned if the specified …

c# asp.net appsettings namevaluecollection fallbackvalue
ASP.Net/C# convert NameValueCollection to IDictionary?

I’m trying to help my son upgrade a web site I built for him last year. He wants to …

c# asp.net namevaluecollection
Returning dynamic key value collection in ASP.NET Web API

I am developing an ASP.Net Web API project. In my project, I am trying to return JSON from action …

c# asp.net asp.net-web-api keyvaluepair namevaluecollection
Reverse function of HttpUtility.ParseQueryString

.Net's System.Web.HttpUtility class defines the following function to parse a query string into a NameValueCollection: public static NameValueCollection …

asp.net asp.net-mvc query-string namevaluecollection