Hi Kanwal,
you said iterate through connectionstrings collection to get key names which will be name of connection string. but it is in our .net pages, right. but still in our web.config file, we have to define connection user id and password right?
Actually what I want is i need to mention just only the name of connection when defining connection in web.config file. the connectionstring is created through "create connection" option of IIS manager of IIS 7.0. in that option we are creating a connection with connection name providing username,password,server,database etc.
once created, only the connection name has to be placed in web.config file. this is what I am looking for? Could you please tell me any way to implement this?
Thanks
Joseph