Hi harshal
You can get the connection string follow of this sub code:
string strConnectionString=ConfigurationManager.AppSettings["ConnectionString"];
ConnectionString is the name of your connection string form
web.config
after that you can split the
strConnectionString
with
strConnectionString.Split()
method.
If you want to the get more information about connection string please review this link:
How to get Connection String from App.Config in c#[
^]
Good luck
Best regards.