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

Custom controls

I have a piece of functionallity that is replicated on several pages. This
would be a good candidate for a custom control right?

Well I found a couple of tutorials (none really helpful) so I created a
simple asp app and added a custom control to the project.

Now to the problem. I created the control using a GridFlow control so that
the position of the controls within the custom control can be formatted
correctly. I then added the control to the asp page. The problem is that I
cannot figure out how to control where the output is shown. On the design
page the custom control shows at the left/top corner. By adding the style
attributes style="LEFT: 41px; POSITION: absolute; TOP: 32px" I can make the
controls show correctly on the design page but running the page destroys the
position.

Please help or direct me to an info source that leads me through the process
of creating the controls.
Nov 18 '05 #1
3 1369
PS, when I add these controls there does not seem to be any way to see these
controls in code. I cannot make them "Run as Server", and they do not show
in the VB code.

Placing the cursor on any other control will cause the properties window to
show the control selected. This is not the case for the simple custom
control I created. It was created in the project and the ascx file in the
Project Explorer then dragged to a position.
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:7R******************@news01.bloor.is.net.cabl e.rogers.com...
I have a piece of functionallity that is replicated on several pages. This would be a good candidate for a custom control right?

Well I found a couple of tutorials (none really helpful) so I created a
simple asp app and added a custom control to the project.

Now to the problem. I created the control using a GridFlow control so that the position of the controls within the custom control can be formatted
correctly. I then added the control to the asp page. The problem is that I cannot figure out how to control where the output is shown. On the design
page the custom control shows at the left/top corner. By adding the style
attributes style="LEFT: 41px; POSITION: absolute; TOP: 32px" I can make the controls show correctly on the design page but running the page destroys the position.

Please help or direct me to an info source that leads me through the process of creating the controls.

Nov 18 '05 #2
PS again.

In just trying anything to get this to work I notice the following:

- I can add attributes manually in design to get the control to show in the
correct place in the design page.
- As soon as I do this the designer looses its mind. The dropdown list of
controls will only show one control. I have added labels and other things
to see what is generated but only one of these controls will show in the
dropdown list.

This makes no sense other than the parsing of the page that takes place
between the design and HTML views fails with no indication to the developer.
Nov 18 '05 #3
Another thing that is wrong is that the control is not added to the code of
the hosting page (code behind). I have a feeling that what I am doing is
very wrong. I have followed a tutorial and while the control will show in
the page, I cannot make it so that it will show in the correct place and
cannot be referenced by anything else on the page.
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:7R******************@news01.bloor.is.net.cabl e.rogers.com...
I have a piece of functionallity that is replicated on several pages. This would be a good candidate for a custom control right?

Well I found a couple of tutorials (none really helpful) so I created a
simple asp app and added a custom control to the project.

Now to the problem. I created the control using a GridFlow control so that the position of the controls within the custom control can be formatted
correctly. I then added the control to the asp page. The problem is that I cannot figure out how to control where the output is shown. On the design
page the custom control shows at the left/top corner. By adding the style
attributes style="LEFT: 41px; POSITION: absolute; TOP: 32px" I can make the controls show correctly on the design page but running the page destroys the position.

Please help or direct me to an info source that leads me through the process of creating the controls.

Nov 18 '05 #4

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

Similar topics

7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
6
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
2
by: J R M | last post by:
I've developed a custom control (it's basically a drop-down list and then a couple of textboxes to include meta-data for the selection) that I'm embedding into another custom control (the idea is...
6
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: rizwanahmed24 | last post by:
Hello i have created a custom control. i have placed two template controls on it. One is check box and second is picture box. The custom control also contain two picture boxes as property. These...
2
by: Ron | last post by:
I would like some more information on custom controls, what they can do and things like that, what you would use them for etc... Can anyone here share some examples of what you have used a custom...
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...
5
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...
0
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,...

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.