hey all,
i have a cold case here:
my original question was this:
"hey all, when i create my user control (not custom control) how do you
generally make it available to other solutions or for other team members to
use? i'm thinking in a new solution, i say "Add an existing item..." and just
put the user control into the project? thanks, rodchar"
and then the reply i got was this:
"If it's going to be shared among other solutions, the best thing to do is
to create a new class library and build your controls as composite or
rendered controls in that project. Then you add that class library project to
your solutions you want to use them in. You will then be able to use the
controls in any project. "
Did the reply mean to not use a web user control and just "create a new
class library and build your controls as composite or rendered controls in
that project"
If so, how do you do this?
thanks,
rodchar 2 1028
there is nothing wrong with sharing source files. c/c++ has done this
for years. its tried and true.
the best approach is to use source control for sharing. create a shared
folder for shared user controls. link the desired controls to the
current project. if you want to share a new control, just link to the
shared folder.
-- bruce (sqlwork.com)
rodchar wrote:
hey all,
i have a cold case here:
my original question was this:
"hey all, when i create my user control (not custom control) how do you
generally make it available to other solutions or for other team members to
use? i'm thinking in a new solution, i say "Add an existing item..." and just
put the user control into the project? thanks, rodchar"
and then the reply i got was this:
"If it's going to be shared among other solutions, the best thing to do is
to create a new class library and build your controls as composite or
rendered controls in that project. Then you add that class library project to
your solutions you want to use them in. You will then be able to use the
controls in any project. "
Did the reply mean to not use a web user control and just "create a new
class library and build your controls as composite or rendered controls in
that project"
If so, how do you do this?
thanks,
rodchar
in the original post what did the reply mean by:
"build your controls as composite or rendered controls"
how do you do something like this?
"rodchar" wrote:
hey all,
i have a cold case here:
my original question was this:
"hey all, when i create my user control (not custom control) how do you
generally make it available to other solutions or for other team members to
use? i'm thinking in a new solution, i say "Add an existing item..." and just
put the user control into the project? thanks, rodchar"
and then the reply i got was this:
"If it's going to be shared among other solutions, the best thing to do is
to create a new class library and build your controls as composite or
rendered controls in that project. Then you add that class library project to
your solutions you want to use them in. You will then be able to use the
controls in any project. "
Did the reply mean to not use a web user control and just "create a new
class library and build your controls as composite or rendered controls in
that project"
If so, how do you do this?
thanks,
rodchar
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: martin |
last post by:
Hi,
I am a web page and a web user control. My web user control is placed in my
web page using the following directive
<%@ Register TagPrefix="uc1" TagName="Header" Src="WebControls/Header.ascx"
%>
The web user control contains the following server controls
|
by: Shourie |
last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle.
1) MainPage_load
2) User control1_Load
user clicks a dropdown in UC1
_________________________
1) MainPage_Load
2) User Control_1 Load
|
by: Steve Booth |
last post by:
I have a web form with a button and a placeholder, the button adds a user
control to the placeholder (and removes any existing controls). The user
control contains a single button. I have done all the usual stuff of
recreating the usercontrol in the Page Init event.
The 'failure' sequence is as follows:
- select web form button to display the user control
- select user control button, event fires
- select web form button to display...
|
by: louise raisbeck |
last post by:
Resending this as own topic as didnt get answer from original. Would be
grateful for a response from anyone that knows. Thanks.
Hi there, I found your post really helpful..but i wondered if, once I have
exposed a public property containing the value of a textbox in a user
control..how do I grab this from the calling page? I cant think of the
syntax, since my page doesnt know the contents of the class (and therefore,
the public...
|
by: tony |
last post by:
Hello!
This is a rather long mail but it's a very interesting one.
I hope you read it. I have tried several times to get an answer to this mail
but I have
not get any answer saying something like this is a bug or that .NET doesn't
support what I
trying to do.
I hope that one that is is microsoft certified read this because this must
be a bug.
| |
by: fernandezr |
last post by:
I would like to use a user control as a template inside a repeater.
Some of the fields in the control should be hidden depending on whether
or not there is data. I'm still a ASP .Net newbie so the way I'm going
about doing this might be a little off. I'd appreciate some help.
Below is the code I have thus far but I'm not sure how to reference the
user control within the foreach loop.
<asp:Panel ID="pnlRosterProfile" runat="Server" />
|
by: davidr |
last post by:
Hi,
I have a panel that I load user Control in no problem. The problem
arrises when I do a post back on one of these user controls. I have
button it does a click event. In this click event I will do some
database updates, then I will use reflection to call a method in the
parent (this.page) to load the new user control. Its at this point
after it loads the new user control that it throws the error "The
control must be placed inside...
|
by: rn5a |
last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with
the IDs 'txt1' & 'txt2' respectively. To use this user control in an
ASPX page, the following Register directive will be required:
<%@ Register TagPrefix="UC" TagName="MyUserCtrl" Src="MyUC.ascx" %>
Assuming that the ASPX page doesn't use a code-behind, I can access the
properties, events etc. of the user control in the ASPX page in this
way (assume that the ASPX page...
|
by: ChrisCicc |
last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have been able to find the cause of the problem, and will describe it here first textually and then through a code example.
The purpose of what I am trying to do is to create a postback-free web application through the use of ASP.net AJAX UpdatePanels...
|
by: Fred Chateau |
last post by:
I am trying to access a user control class, for a user control that is
loaded dynamically, from the containing page. I have been able to access Web
controls in the user control, but so far I have been unable to expose the
user control class itself. I'm guessing that I need to set up an interface,
but I am not sure how to accomplish this.
Here is the code that loads the user control:
protected void Page_Init(object sender, EventArgs e)...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |