473,386 Members | 1,846 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.

Web Control Library

How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?
Nov 18 '05 #1
4 3804
No, you can't visually do it. You can do it in code via either the Render()
or CreateChildControls() methods. Nikhil has a great book
http://www.amazon.com/exec/obidos/AS...khilkothari-20 - though
I'd consider the topic advanced. There are a number of online resources.

Karl
"Mark Goldin" <ma********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?

Nov 18 '05 #2
I see.
Where can I find a sample of how to create a custom control
that would have a label and a text box?

"Karl" <none> wrote in message news:uX**************@tk2msftngp13.phx.gbl...
No, you can't visually do it. You can do it in code via either the Render() or CreateChildControls() methods. Nikhil has a great book
http://www.amazon.com/exec/obidos/AS...khilkothari-20 - though I'd consider the topic advanced. There are a number of online resources.

Karl
"Mark Goldin" <ma********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?


Nov 18 '05 #3
What you are takling about is creating a Composite Web Control. This
article might be useful: http://aspalliance.com/359 (it's part 2 of a 3
part piece, you might be interested in all 3).
There's also this one:
http://msdn.microsoft.com/library/de...trolsample.asp

Karl

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...
I see.
Where can I find a sample of how to create a custom control
that would have a label and a text box?

"Karl" <none> wrote in message

news:uX**************@tk2msftngp13.phx.gbl...
No, you can't visually do it. You can do it in code via either the

Render()
or CreateChildControls() methods. Nikhil has a great book
http://www.amazon.com/exec/obidos/AS...khilkothari-20 -

though
I'd consider the topic advanced. There are a number of online resources.
Karl
"Mark Goldin" <ma********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?



Nov 18 '05 #4

If you want to design the controls visually what I do is create a second web
project and add all my controls to that. When I need to use the library I
just copy the ascx files into my main web app and add a reference back to my
'controls' web project. I do this to allow our designers access to the
control layout without letting them near the code. It also means that you
have a easy maintainable base line set of the ascx controls that you can
copy into a new project when every you need to use the library.

I would add that this plan seems to have been screwed by asp.net 2.0 as it
would seem that you can no longer add a reference to a web project within a
solution, in fact I cant even find the assembly the project creates at the
moment ;-)

Stephen.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?

Nov 18 '05 #5

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

Similar topics

6
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"...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
1
by: Tony Johansson | last post by:
Hello!! I use VS 2003 and C#. I have sent several mail even tried with crossgroup because I want to find out if my problem is a bug in .NET or if .NET doesn't support what I do. It's only one...
1
by: Tony Johansson | last post by:
Hello!! I use VS 2003 and C#. I have sent several mail even tried with crossgroup because I want to find out if my problem is a bug in .NET or if .NET doesn't support what I do. It's only one...
5
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...
2
by: Iwan Budihalim | last post by:
Dear All, I try to create Windows Control Library and embedded it to my web project. after successfull creating the windows control library and put the control to my web all the control show...
5
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I have a user control which I like to use in several projects (winforms) in the same solution. Inside lets say Winapp1 , When adding a reference to this control, I can dynamically or statically...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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,...
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...

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.