CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 6/21/2004 8:28:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
raytel
Asp.Net User
Subproperty's designer is never called6/21/2004 8:28:33 PM

0/0

Hello
My WebControl contains another WebControl as an expandable subcontrol.
My problem is that the subproperty's designer is never called.
Thanks for any helpful suggestions.
Raymond

namespace Tests

{
[ ParseChildren(false), ... ]
public class TestControl : System.Web.UI.WebControls.WebControl
{
private Tests.SubControl tsc = new SubControl();

[ Description("Test subproperty."),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.InnerProperty) ]
public Tests.SubControl SubControl {
get { return tsc; }
set { tsc = value; }
}
} //END public class TestControl


[ Designer(typeof(SubControlDesigner)), ... ]
public class SubControl : System.Web.UI.WebControls.WebControl
{
....
} //END public class SubControl

} //END namespace Tests




Edited by SomeNewKid. Please post code between <code> and </code> tags.
AndrewSeven
Asp.Net User
Re: Subproperty's designer is never called6/21/2004 10:24:37 PM

0/0

Maybe you could try adding it to the controls collection.

You should look at a couple of the threads about composite controls in this forum.
raytel
Asp.Net User
Re: Subproperty's designer is never called6/23/2004 2:45:35 PM

0/0

I added it to the controls collection, it did not help. I looked at maybe 3 dozen threads and found nothing quite like my problem.
Following is the code to a small test program that shows what i mean: I try to use the PostFilterEvents method in the designer to eliminate the 'Disposed' event. To keep things short I attach the designer both to the main class and the subproperty class. If you put the main class (TestControl) on a webpage you will see in the designer that the TestControl's Disposed events misses and the SubControl's event in the expanded events is still visible.
What must i change or add? And when exactly is the designer called (for the main class and the subproperty)?
Ray


[ ParseChildren(false), Designer(typeof(SubControlDesigner)) ]
public class TestControl : System.Web.UI.WebControls.WebControl, INamingContainer
{
private string mstrText;
private Tests.SubControl tsc;

protected override void CreateChildControls() {
tsc = new SubControl();
this.Controls.Add(tsc);
base.CreateChildControls ();
}

[ Description("Test subproperty."),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.InnerProperty) ]
public Tests.SubControl SubControl {
get { return tsc; }
set { tsc = value; }
}

public string TcText {
get { return mstrText; }
set { mstrText = value; }
}

protected override void Render(HtmlTextWriter output) {
output.Write(TcText);
base.Render(output);
}

} //END public class TestControl


[ Designer(typeof(SubControlDesigner)) ]
public class SubControl : System.Web.UI.WebControls.WebControl
{
private string mstrText;

public string ScText {
get { return mstrText; }
set { mstrText = value; }
}

} //END public class SubControl


public class SubControlDesigner : ControlDesigner
{
protected override void PostFilterEvents(System.Collections.IDictionary events) {
events.Remove("Disposed");
base.PostFilterEvents (events);
}

} //END public class SubControlDesigner



3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming with QT Authors: Matthias Kalle Dalheimer, Safari Tech Books Online, Pages: 450, Published: 2002
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Computer Aided Verification: 20th International Conference, CAV 2008 Princeton, NJ, USA, July 7-14, 2008, Proceedings Authors: International Conference on Computer-Aided Verification (20 : 2008 : Princeton), Aarti Gupta, Pages: 558, Published: 2008

Web:
DataBinding to SubProperties -- asp.net building controls At design time it looks like: ... DataBind() method of ImgToolBarButton never gets called. Even the ...
DAML-S Design Rationale and Outstanding Issues DAML-S Design Rationale and Outstanding Issues. This informal working document is meant to provide conceptual background regarding decisions that have been ...
Getting Semantic With Microformats, Part 5: hAtom ~ A Blog Not Limited Online repository for Emily P. Lewis' thoughts on web design, ... hAtom was never intended to be a "syndication format" nor to compete with Atom or RSS. ...
OWL-S Technology for Representing Constraints and Capabilities of ... The drivers for the design of OWL-S are the envisioned automation tasks, .... adding a property called policyEnforced, defined as a subproperty of ...
3 Some Philosophy sub-property b with a current cycle of N + 1. To make the discussion more concrete, let’s consider our assertion, Asser-. tion 3.1a, on Trace 3.1(i). ...
Substroke Design Dump A chain of transforms is called a strip (in analogy to a comic strip or film ..... backto1 subproperty: sub property (required): foo daddy (extended): bar ...
Semantic Metadata Search Introduction This document presents a ... This document presents a high level design of a proposed search facility for ... the type of relationship (subclass of an OBO term, subproperty of a term, ...
Coordination points between RDF(S) and DAML+OIL Classes can be a subclasses of other classes, but never members. ... both the subclass- and subproperty-hierarchy should be allowed to contain cycles, ...
ATM Switch Design by High-Level Modeling, Formal Verification, and ... In Proceedings of the 33th. ACM/IEEE Design Automation Conference. ACM, New York , 585–590. O. WRE. , S., R. AJAN. , S., R. USHBY. , J., S ...
Tenth Meeting on FRBR/CRM Harmonization together with 15th CIDOC ... About properties notation in subproperty and superproperty part in property definition part, Chryssoula’s suggestion to rewrite them following the notation ...




Search This Site:










radiobutton inside repeater

is it legal or not?

activex control

problem is displaying my control properties in properties window

how to get default web site path

accessing subcontrol

how to create server control in asp.net?.please help

share complex user-interface collection with many web applications

changes in code have no effect

evaluateisvalid() not being called in my custom control

skittish user control code - runs sometimes

how to create a property browser

save status in composite control

serialize a user control?

property change not reflected in code.

choosing a cms - recommendations and advice

help - link button on user control 'losing its mind'

searchresult.properties("????")

how to implement paging for a repeater?

custom datagrid control help

properties not showing up of the inherited control

validating text box

creating a composite control with properties accepting array

postback data handler problem

eventargs with text/value properties

.net with sql server hosting

vps - what i need to do (or buy) to run asp.net 2.0 application?

inherited datalist events not firing

send email with godaddy??

building my own licensce key

  Privacy | Contact Us
All Times Are GMT