Referencing controls

M

Mantorok

Hi

Is it possible to reference controls or pages in a seperate ASP.Net website
project?

Thanks
 
M

Mark Rae

Is it possible to reference controls or pages in a seperate ASP.Net
website project?

Not really. You can send WebRequest objects and receive WebResponse objects,
but I suspect that's not really what you mean...

What are you trying to do exactly...?
 
M

Mantorok

Mark Rae said:
Not really. You can send WebRequest objects and receive WebResponse
objects, but I suspect that's not really what you mean...

What are you trying to do exactly...?

Well, for the controls I'm going to tackle a Web Control Libary, but we also
have generic pages that we have to include in multiple projects.

Kev
 
M

Mark Rae

Well, for the controls I'm going to tackle a Web Control Libary, but we
also have generic pages that we have to include in multiple projects.

LOL! Oh *that*'s what you mean... :)

In which case, I'd strongly recommend using Visual SourceSafe. Create a
separate project for your generic pages, then simply share them into your
other projects as required. This means that if you modify a shared object in
one project, it will be updated in all other projects which share it.

I have exactly this setup, mainly for base classes e.g. database access,
encryption, validation, registry, event log, FTP, active directory, email
etc, but also some .js files and some test webforms.

All of my shared classes have the same namespace 'sharedCode', which means
all I have to do is write "using sharedCode"; in any class which needs to
use it.
 
M

Mantorok

Mark Rae said:
LOL! Oh *that*'s what you mean... :)

In which case, I'd strongly recommend using Visual SourceSafe. Create a
separate project for your generic pages, then simply share them into your
other projects as required. This means that if you modify a shared object
in one project, it will be updated in all other projects which share it.

I have exactly this setup, mainly for base classes e.g. database access,
encryption, validation, registry, event log, FTP, active directory, email
etc, but also some .js files and some test webforms.

All of my shared classes have the same namespace 'sharedCode', which means
all I have to do is write "using sharedCode"; in any class which needs to
use it.

We are using TFS already for our source control, I might have a look at
sharing the pages, sounds like that may work out for us.

Kev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top