Instantiate Class of other Project under same solution

  • Thread starter Thread starter tarunbajaj
  • Start date Start date
T

tarunbajaj

Hello Readers,
I am working on a web application.It has two Projects A & B under a
Solution, for each Region, using the site. The Code base for both the
Projects is same.
There is a login page in both the Projects. Login page has "Region"
selection and Login / Password fields.
If user from region B, goes to login page of A, they can go to
appropriate region by selecting the Region.
Behind the scene in the Login page, I am validating the user by
checking the Credentials and direct them to appropriate home page under
the respective Project.
Now code base being same, there is same class that is created but if I
am at the login page of one region (say A) trying to go to other region
(say B), the class cannot be instantiated because the class does not
exist in Project A.
Please suggest a good approach to handle this.
I want to avoid query string because I have to pass login/password.
Encrypting the query string did not work because in encoding and
decoding it scrambles the encryption.
Session did not work because I am trying to go from one Project to
another.
Thanks for the pointers.
 
Thanks Bob. This may not work for me. I will tell you why. Please
advice if I am correct in saying that.
I cannot have common DLL because the common piece is Login. By creating
DLL of the login, I can only call the Login page from each of these
Projects. Whereas I want to call these Projects from login.
Please help. And thanks for the suggestion. I can use it at some other
place though
Tarun
 
Back
Top