Hi,
You can not have a TextBox instance value inside a connection string in a configuration file. You have to add pair values to pick up data from there, and in case you need to ask for some of those values to the user, you have to create the connection string based on those values
For storing and retrieving connection strings from config files check out this link
And for building connection strings use the ConnectionStringBuilder. Check that info in this link too.
Best Regards
|