473,729 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User control development using VS 2003

Is there any one who has actually done this. I have now scanned more web
articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems
that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS
with any visual designer support. I thought the 'V' in VS stood for Visual.

Can anyone point me to a resource please???
Nov 18 '05 #1
11 1682
Whould be nice to know what the problem is.
"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message
news:6y******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Is there any one who has actually done this. I have now scanned more web
articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems
that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS
with any visual designer support. I thought the 'V' in VS stood for Visual.
Can anyone point me to a resource please???

Nov 18 '05 #2
What is it that you are trying to do? User controls (ascx controls) have
designer support. If you are attempting to make a custom control (sometimes
called a server control) then you don't get designer support, because it's
all about handling events and spitting out HTML (or any plain text, really)
when it is told to render. If you can give details, we can try and point you
in the right direction. I have done both extensively.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message
news:6y******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Is there any one who has actually done this. I have now scanned more web
articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems
that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS
with any visual designer support. I thought the 'V' in VS stood for Visual.
Can anyone point me to a resource please???

Nov 18 '05 #3
Please read my previous posts (don't want to clog group with repeats).
Should show just prior to this post.

Thanks

"Chris Jackson" <chrisjATmvpsDO TorgNOSPAM> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
What is it that you are trying to do? User controls (ascx controls) have
designer support. If you are attempting to make a custom control (sometimes called a server control) then you don't get designer support, because it's
all about handling events and spitting out HTML (or any plain text, really) when it is told to render. If you can give details, we can try and point you in the right direction. I have done both extensively.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message news:6y******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Is there any one who has actually done this. I have now scanned more web articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS with any visual designer support. I thought the 'V' in VS stood for

Visual.

Can anyone point me to a resource please???


Nov 18 '05 #4
Please check my prior posts (don't want to clog newgroup with dups)

Thanks Lloyd Sheen

"Ruslan Shlain" <rs*****@hotmai l.com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
Whould be nice to know what the problem is.
"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message news:6y******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Is there any one who has actually done this. I have now scanned more web articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS with any visual designer support. I thought the 'V' in VS stood for

Visual.

Can anyone point me to a resource please???


Nov 18 '05 #5
Try this

http://asp.net/Tutorials/quickstart.aspx

Its got a few things on controls. my user control if you mean .ascx objects.
Well they are just the normal aspx files which are stripped of all the extra
tags
all you have to do is rename the aspx file into ascx and then change
Codebehind="Mod uleTitle.ascx.c s"
to point it to ascx instead of earlier aspx...
and you user control is up and running.

Unfortunately when you load it it acts like a server side include and its
not parse so all you see is a greyish object with UserControl-id of control
when added to an asp.net page (aspx)

Hope this helped...

Hermit Dave

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message
news:6y******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
Is there any one who has actually done this. I have now scanned more web
articles about this with the realization that not one of them (including
MSDN docs) outlines how to do this. This is beyond frustration. It seems
that with every new VS release the documentation falls further behind.

What I want to do should be simple but I can find no way to do it with VS
with any visual designer support. I thought the 'V' in VS stood for Visual.
Can anyone point me to a resource please???

Nov 18 '05 #6
What I am trying to do is use code that works on one page in other pages.
It is a set of controls that access information from a SQL Server and
populate a list depending on certain criteria.

I need to have the same functionallity on several pages. This is what I
would think is the best cause for the use of user controls.

I am new to ASP.NET and have taken the idea of a user control from previous
VS types (VB6). I would think you could create a user control for ASP by
creating the child controls, add code to put functionallity to those
controls (server side) and then be able to add that control to ASP pages.
This does not seem to be a viable thing to do in VS 2003.
Nov 18 '05 #7
This does nothing for me. I need to be able to access other controls on the
page. Be able to position the control. Actually what I want to know is if
I can from scratch create a new user control . Add child controls to this.
Add code to this. Add properties to this. Use the resultant control.

Sorry if I seem bitchy but I am now on the 42nd page of the google search
and still no resolution.

Having VS 2003 at the present is as usefull as notepad. And notepad takes
less memory.
Nov 18 '05 #8
Well my friend what you are talking bout is a custom web control.
You have two options.
1. Creating everything yourself (Even emitting the correct html code.)
2. User a composite control which is exactly what it means. You consume
other controls and delegate the task. But you have to ensure that you call
EnsureChildCont rols has been called

Yes you can define your own properties and you can set one of the properties
to style. Which will give you the position of control
If you need style settings for child controls too... then try something like
datagrid... you have PagerStyle and ItemStyle.

I think i have seen a book from wrox press on custom web controls. Should
sort you out.... To start up just look at the link i gave you earlier. or
try this one...

http://www.dotnetjunkies.com/quickst...authoring.aspx

for creating custom web controls.... You can look on asp.net books as
well... they generally do have a chapter on creating controls.. and atleast
an example of each...

Hermit Dave

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message
news:To******** **********@news 01.bloor.is.net .cable.rogers.c om...
This does nothing for me. I need to be able to access other controls on the page. Be able to position the control. Actually what I want to know is if I can from scratch create a new user control . Add child controls to this. Add code to this. Add properties to this. Use the resultant control.

Sorry if I seem bitchy but I am now on the 42nd page of the google search
and still no resolution.

Having VS 2003 at the present is as usefull as notepad. And notepad takes
less memory.

Nov 18 '05 #9
So then the answer is no. You cannot use VS 2003 to do this other than as
an expensive notepad??
"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:eo******** ******@TK2MSFTN GP11.phx.gbl...
Well my friend what you are talking bout is a custom web control.
You have two options.
1. Creating everything yourself (Even emitting the correct html code.)
2. User a composite control which is exactly what it means. You consume
other controls and delegate the task. But you have to ensure that you call
EnsureChildCont rols has been called

Yes you can define your own properties and you can set one of the properties to style. Which will give you the position of control
If you need style settings for child controls too... then try something like datagrid... you have PagerStyle and ItemStyle.

I think i have seen a book from wrox press on custom web controls. Should
sort you out.... To start up just look at the link i gave you earlier. or
try this one...

http://www.dotnetjunkies.com/quickst...authoring.aspx

for creating custom web controls.... You can look on asp.net books as
well... they generally do have a chapter on creating controls.. and atleast an example of each...

Hermit Dave

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message news:To******** **********@news 01.bloor.is.net .cable.rogers.c om...
This does nothing for me. I need to be able to access other controls on

the
page. Be able to position the control. Actually what I want to know is

if
I can from scratch create a new user control . Add child controls to

this.
Add code to this. Add properties to this. Use the resultant control.

Sorry if I seem bitchy but I am now on the 42nd page of the google search and still no resolution.

Having VS 2003 at the present is as usefull as notepad. And notepad takes less memory.


Nov 18 '05 #10

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

Similar topics

5
524
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
2
6609
by: Technical Group | last post by:
Friends, Can anybody help me out by sending a piece of C# code showing how to add an active directory user to a particular user group? If the group does not exist, then create it. Thanks in advance -Hari
11
3219
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink id="hl1" runat="server " navigateurl="http://www.microsoft.com">This is my link</asp:hyperlink> And this is my text after the Hyperlink
13
1584
by: Lloyd Sheen | last post by:
I have now spent 5 hours on google/msdn looking for something useful in the creation of user controls for asp.net. The VS 2003 has very limited support for things such as absolute positioning of the control etc.
5
3159
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 the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
5
1962
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can drop non-visual (controls) on the data module surface and wire them up and create procedures, functions, event procedures. In the source file (code behind file) the Data Module is a class, and the dropped components are public properties. The...
2
1292
by: Linda | last post by:
Greetings, I am experiencing a problem similar to that mentioned in <a href="http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/a4ca8746b3de09c2/3a24082f15010830?q=controls+vanishing&rnum=1#3a24082f15010830">this post</a>, which is too old for me to respond to. Does anyone have any additional information? I am using VB.Net 2003. The Solution has two projects: one is a library project, which...
2
3017
by: HammRadio | last post by:
I am exploring converting my web app (current Framework 1.1) to Framework 2.0. Everything went smoothly save for one item. To reduce the trips to the database, when loading user controls (like a large datagrid or form), we store the grid or form in Session Object. On PostBack we grab the control from the session, add it to our main form. In VS 2003 (1.1), the page will fire any event called in the custom control, e.g, cmdSave_Click. ...
4
1941
by: James R. Davis | last post by:
.... due to failure in receiving user's application data path. Okay, this simply cannot be a problem unique to me and I assume there is a straight forward solution, but it escapes me. I have completed a fully functional application using ASP.NET 2 on my development site. Wanting to make it functional on a different server, I installed SQL Express on the target server, then moved the application using Visual Web Development to the new...
0
8913
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
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, 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...
0
9280
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
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

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.