473,394 Members | 1,875 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,394 software developers and data experts.

Web Custom Controls - multiple copies?

Hi all,

I have created 7 web custom controls for 7 sections of our template.

I have them currently on my local pc - where vs placed them...the plan was
that I would create these - throw them into a central location then the rest
of our team would be able to use them to create our generic template for our
applications etc...

One thing I've noticed is when I opened up a new webform and created my
table layout - then having already added the dll's to the toolbar etc, when
I drag and dropped them into my table structure the .dll's were also copied
into the structure within IIS - yet I was under the impression that by using
the Web Custom Controls I would be able to place them in one central
location and simply point to them - however at present I now have multiple
copies again - which surely suggests that if I change the code in one of the
..dll's in the central location the copies taken to all of the applications
that use it will be different etc...something I was trying to avoid..

Because I'm still testing this approach the .dll's are on my local pc - and
the application is on our development server - I was somewhat surprised to
see copies of the .dll's appearing in the application on the development
server...

Any help would be appreciated (bit new at this as you can probably tell)...

Regards

Rob
Nov 18 '05 #1
3 1299
To deploy to a central location as you've described you'll probably want to
put them in the GAC.
Here's more info:
http://msdn.microsoft.com/library/de...emblycache.asp
http://msdn.microsoft.com/library/de...emblyCache.asp
http://www.aspzone.com/articles/john/GAC/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com


"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Hi all,

I have created 7 web custom controls for 7 sections of our template.

I have them currently on my local pc - where vs placed them...the plan was
that I would create these - throw them into a central location then the rest of our team would be able to use them to create our generic template for our applications etc...

One thing I've noticed is when I opened up a new webform and created my
table layout - then having already added the dll's to the toolbar etc, when I drag and dropped them into my table structure the .dll's were also copied into the structure within IIS - yet I was under the impression that by using the Web Custom Controls I would be able to place them in one central
location and simply point to them - however at present I now have multiple
copies again - which surely suggests that if I change the code in one of the .dll's in the central location the copies taken to all of the applications
that use it will be different etc...something I was trying to avoid..

Because I'm still testing this approach the .dll's are on my local pc - and the application is on our development server - I was somewhat surprised to
see copies of the .dll's appearing in the application on the development
server...

Any help would be appreciated (bit new at this as you can probably tell)...
Regards

Rob

Nov 18 '05 #2
I think what you might want to do is create a central location that
you will house your controls. Then use IIS virtual directories in all
your web apps. I think the only catch is that your control is a DLL.
I know only DLLs in the /bin directory get loaded. I wonder if you
create a /bin directory in your virtual directory (basically two /bin
directories) if all the DLLs will get loaded.

Do you need to compile it into a DLL? If you leave it as an ASPX page
or ASPX-Codebehind combination, IIS will compile the files
automatically when they first get called. If you do this you will not
have the /bin problem.

Hope this helps...good luck.

Neil

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message news:<uk**************@TK2MSFTNGP09.phx.gbl>...
Hi all,

I have created 7 web custom controls for 7 sections of our template.

I have them currently on my local pc - where vs placed them...the plan was
that I would create these - throw them into a central location then the rest
of our team would be able to use them to create our generic template for our
applications etc...

One thing I've noticed is when I opened up a new webform and created my
table layout - then having already added the dll's to the toolbar etc, when
I drag and dropped them into my table structure the .dll's were also copied
into the structure within IIS - yet I was under the impression that by using
the Web Custom Controls I would be able to place them in one central
location and simply point to them - however at present I now have multiple
copies again - which surely suggests that if I change the code in one of the
.dll's in the central location the copies taken to all of the applications
that use it will be different etc...something I was trying to avoid..

Because I'm still testing this approach the .dll's are on my local pc - and
the application is on our development server - I was somewhat surprised to
see copies of the .dll's appearing in the application on the development
server...

Any help would be appreciated (bit new at this as you can probably tell)...

Regards

Rob

Nov 18 '05 #3
Getting even more confused with the follow ups now - sorry guys - not your
fault - mine - I have no idea what I'm doing...

I've posted again with full details of what I am trying to achieve in the
thread entitled "someone please save me from myself!!! ASP.Net
templates??" - not sure if that might help...

Regards

Rob
Nov 18 '05 #4

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

Similar topics

24
by: downwitch | last post by:
Hi, I know this has been covered here and in the .public groups, but it seems like it's been a while, especially around here, so I just thought I'd ask again to see if anyone has figured out a...
3
by: anon | last post by:
I am having a hard time with makeing what I am trying to do work. I am making a questionaire web app. I have a custom control that has a label and 5 radio buttons. My problem is that each...
4
by: earwicker | last post by:
I recently deployed a web application which contains a user registration form with the usual fields: name, address, email, password, etc. Each of the TextBoxes uses a validation control to verify...
3
by: Ryan Moore | last post by:
I am trying to "tune" some user controls in ASP.NET for optimal caching. Is it possible to do a vary by param - on a Session Variable, so the page caches when a Session variable stays the same,...
21
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
1
by: Novice | last post by:
Hey all, I have finally managed to create a Custom WebControl and am using a technique from another programmer to maintain state between pages - I would just like to validate this idea. ...
2
by: Brian Henry | last post by:
Is it possible to create web users controls which can actively be used on multiple projects? similarly to how a winforms user control can be used in multiple project when referenced. What I want...
3
by: Michael | last post by:
Hi all.. I have a solution containing 5 projects, one of which is a custom control. In one of the projects, I dragged the .ascx file from the custom control project and dropped it onto a form....
1
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom...
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: 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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.