P
Piotrek
Hi all.
I am developing a web application, which should be able to retrieve
data from many databases. In Web.Config I created three named
connection strings.
My app consists of DAL, BLL and Presentation Layer. In GUI user shuld
be able to select database, which he wants to work with. I can store
connection string of selected DB in Session, but I have problems with
passing it to DAL through BLL. My BLL classes are normal cs files and
they do not have access to Session. Of course I can pass this.Page
parameter to BLL and then use page.Session, but I find this solution a
bit clumsy.
Does anybody know a better solution to this? I am sure that many of you
faced the same problem as I do, so I would like to know your solutions.
Thanks in advance,
Piotrek
I am developing a web application, which should be able to retrieve
data from many databases. In Web.Config I created three named
connection strings.
My app consists of DAL, BLL and Presentation Layer. In GUI user shuld
be able to select database, which he wants to work with. I can store
connection string of selected DB in Session, but I have problems with
passing it to DAL through BLL. My BLL classes are normal cs files and
they do not have access to Session. Of course I can pass this.Page
parameter to BLL and then use page.Session, but I find this solution a
bit clumsy.
Does anybody know a better solution to this? I am sure that many of you
faced the same problem as I do, so I would like to know your solutions.
Thanks in advance,
Piotrek