473,699 Members | 2,564 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 1033

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

Similar topics

1
1230
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
6098
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
3259
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
14642
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
13878
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
992
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
1143
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
1421
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
8691
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
8620
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9180
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
9038
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
5877
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
4633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3060
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
2
2351
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2012
bsmnconsultancy
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...

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.