473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Instantiate Class of other Project under same solution

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.

Nov 16 '05 #1
2 2307
OTTOMH you could try creating the login page in a DLL project and
referencing that in the two projects.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

<ta********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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.

Nov 16 '05 #2
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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Jon Slaughter | last post by:
I have a class that is basicaly duplicated throughout several files with only members names changing according to the class name yet with virtually the exact same coding going on. e.g. class...
4
by: A. Gonzalez | last post by:
Hi everyone, Does anyone know how to instantiate, or create an XML document file (either using DOM or Readers) from an XML schema (xsd) file? I'm trying to develop an application that can...
1
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
6
by: Peter Strøiman | last post by:
Hi. I have a situation where I have a web project and a class library in the same solution. The web project uses the class library. Therefore, I created a "project reference" in the web project...
13
by: Brian | last post by:
I have many similar classes in a project, one for each type of report my app can create. I want to instantiate them based on a value passed in by a scheduler module. Right now I have Sub...
16
by: Rainer Queck | last post by:
Hi, What would be the best way to develop a class library? I am planing to develop a couple of classes, needed in our company enviroment. These classe will be later used in several projects. ...
5
by: Ohad weiss | last post by:
Hi all, I have a class in project A. At the same solution, I have another project - named project B. I want to write a piece of code in that class from project B that finds the class in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.