Using Connectionstring
-
i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???
-
i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???
Try the ASP.NET forum
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???
This should really be posted in the asp.net forum, bur the process is the same as for winforms. First, move the connection strings from the
AppSettings
into the specialisedconnectionStrings
section(you'll have to google for this as I'm replying from my phone). This has a few advantages, first you can get aConnectionstring
object, the connection strings can be encrypted in config separately and (most important in your case) the connection strings are now separate from the other app config. Now all you need to do is iterate over the set of connection string and add the names to the dropdown list. Note that sending the strings themselves down to the client is a security risk. Once the client has responded with a selected name you can use it to look up the string from the config.CCC solved so far: 2 (including a Hard One!)