Link to home
Start Free TrialLog in
Avatar of Saroj13
Saroj13

asked on

How to get the connection string depending upon the url parameter passed in c#, asp.net?

Hi,

I am having ItemList Application. This application is used by 20 applications and each of them have separate database. From each 20 applications, I want to open the ItemList application and value is inserted in the corresponding database.

ItemList application is not having its own database. ItemList is using the database depending upon the application called.

 <A href="ItemList/Login.aspx?AppID=CallApp" target="_self">ItemList</A>

How this can be achieved?
ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Saroj13
Saroj13

ASKER

ItemList application is ued by 20 applications. Each 20 application is having corresponding Database.

App1
<A href="ItemList/Login.aspx?AppID=App1" target="_self">ItemList</A>
App1 is having Database App1. App1 Database is having 3 corresponding ItemList tables.

App2
<A href="ItemList/Login.aspx?AppID=App2" target="_self">ItemList</A>
App2 is having Database App2. App2 Database is having 3 corresponding ItemList  tables.

ItemList application, depending upon the Parameter passed in the url, use the corresponding database. If Itemlist app is open from App1 application, then Itemlist app uses App1 Database.

If Itemlist app is open from App2 application, then Itemlist app uses App2 Database.

ItemList is the generic application.

Thanks