473,569 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1309
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**********@N OSPAMubht.swest .nhs.uk> wrote in message
news:uk******** ******@TK2MSFTN GP09.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**********@N OSPAMubht.swest .nhs.uk> wrote in message news:<uk******* *******@TK2MSFT NGP09.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
5422
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 new angle. If I have a class MyClass--not a collection container but a single-level class--that has a bunch of properties of different types, I'd...
3
2725
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 different topic for the questionaire is in a database and each questionaire will have a different number of questions. I am trying to use a repeater to...
4
4493
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 the input. On my development server, this form works precisely as expected. When I deploy the app to the production server (a hosting service), the...
3
3851
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, but refreshes when the session changes? thnx
21
2076
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 string with comma delimited values. For example, if I were to render two text boxes. One with the Value Terry and the Other with the Value 'Burns'...
1
1908
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. Basically I have created a Custom Web Control that is capable of generating multiple webpages. It actually only creates one webpage, but hides Panels (that...
2
1648
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 to do is create user controls that contain the templates for my projects but i want to be able to simotaniously update the templates across the sites...
3
1709
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. I've also referenced the custom control project. Everything looks good, I can see properties and events, etc. The solution builds with no errors. ...
1
2172
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 controls. Only problem is that I'm used to designing my controls in a WYSIWYG (tm) way (i.e. using the designer and writing HTML tags). The only...
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.