C#
-
can we use both two method of connection string in web.config file 1.appsetting 2.connection string?
-
can we use both two method of connection string in web.config file 1.appsetting 2.connection string?
Yes. Ultimately it's just a string. The application provides the context.
I was brought up to respect my elders. I don't respect many people nowadays.
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier -
can we use both two method of connection string in web.config file 1.appsetting 2.connection string?
You can use below code to get both value. AppSettings["KeyName"].ToString(); ConfigurationManager.ConnectionStrings["connectionName"].ConnectionString;
-
can we use both two method of connection string in web.config file 1.appsetting 2.connection string?