473,748 Members | 6,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom WebControl Property Group issues

This is a repost from my question in the buildcontrol sub group.
----------------

I have created a composite custom control.
It works fine, renders, all is good on that side.

I am trying to cleaup the design mode side of it, and in turn clean up the
core control.
All surounding properties.

I have been able to create classes for the properties.
I have been able to get them to appear expandable on VS.2003

Here are the two issues I am having:

1) If I change a a property that is part of a custom grouping (That I
created), the value does not trip design mode rendering to be redone.
In my non-grouped properties, I am acomplishing this by putting in the
code:
ChildControlsCr eated = False
Me.EnsureChildC ontrols()
This does work for my properties that are pulling in the grouped class from
above.

However, if I go and change another non-grouped parameter (or a VS supplied
grouping, such as font).
It re-renders, with the updated values from my custom grouping.

2) (Bigger Issue). Once I close the page in any fashion (close page, close
solution, View in Browser, whatever).
My custom group (class) properties are not saved.

What am I doing wrong? I have been pulling my hair out for a couple days
now, trying to figure this out.

Thanks for any help.

I can post the code if anyone would like to see it.

Thanks


Jul 21 '05 #1
0 1035

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

Similar topics

1
1232
by: Curt_C [MVP] | last post by:
working on a Custom WebControl. I want to add a property, lets call it FOO and I want a custom list of possible values for the designer and for usage "BAR,BANG,GU" (you get the idea). I know how to add the property, and how to get it into the designer, but I dont know how to have it display a custom list in the designer of values. Thanks --
0
885
by: Earl Bonovich | last post by:
This is a repost from my question in the buildcontrol sub group. ---------------- I have created a composite custom control. It works fine, renders, all is good on that side. I am trying to cleaup the design mode side of it, and in turn clean up the core control. All surounding properties.
1
6100
by: Jeremy Chapman | last post by:
I have a property will an array of webcontrols. The control features a custom property editor which can add and remove web controls to the array, but how do I persist the informtion by serializing it to the aspx page? For example, right now, here is what the html looks like when I drag my control on to the page and add some web controls to the ControlList property:
0
3266
by: Jeremy Chapman | last post by:
I have included below virtually all the code to a control I'm trying to build. My issue is that an array list property in my control does not get persisted properly to the aspx page code in design time. If I type the code in the aspx manually it does get parsed correctly though. This is an example of the aspx code that gets parsed correctly. For some reason, if I changed update the Tab property of the control through the GUI at design...
14
14655
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
2
13887
by: P4trykx | last post by:
Hello I'm want to add some custom attributes to WebControls using WebControl.Attributes.Add("abc","234"); So the html output will look like this, <input type="hidden" abc="123" /etc. I know that I need to modify .dtd file and tell the browser that abc i legal attribute. But I have another problem, I can't change the abc attribute using
0
993
by: Ryan | last post by:
I have a custom control and would like to give it a property like the WebControl class's FONT property. I created the following importing from System.Drawing Public Property HeaderFont() As Font Get Return fntHeaderFont End Get Set(ByVal value As Font)
1
1147
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, misters, I have a custom web control, and I want use it in my main user control ASCX. My webcontrol has one event, see source code above /// <summary>Control DropDownExtender para Ordenacion</summary> public class DropDownExtenderOrdenacion : DropDownExtender ....
3
1426
by: Tomasz J | last post by:
Hello Developers, I have a control derived from System.Web.UI.WebControls.WebControl. Control has this property: public string Value { set { _value = value; } get { return _value; }
0
8991
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
9548
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
9374
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...
0
9249
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
8244
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
6796
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
6076
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();...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.