Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Martin #1
Composite Control with FormView property tag prefix attribute?
Hi,
I've developed a Composite control designed to take one FormView and one
SqlDataSource as properties.
I can add my composite control to the designer, then add the SqlDataSource
and then the FormView controls, and things look right in the Source View.
When I run the control, I find the properties have not been assigned, so I
remove the asp tag prefix from the controls (in source view), and then it
works at runtime (but not at design time any more).
I presume there must be some other attribute I am missing that tells the
serializer to serialize asp:FormView as the FormView property of my
composite control, but I can't find it. I sort of would have expected
things to work without an extra attribute. I presume asp prefix maps to
System.Web.UI .WebControls, and my property is of type
System.Web.UI.WebControls.FormView. But then I guess the tag prefix of my
composite control interferes with namespace scope.
Does anyone know what attribute I am missing?
Thanks in advance
Martin
Martin Guest
-
DefaultValue attribute doesn't get set in a composite custom control
I have a simple composite control with the following attributes: public string NameLabelText { get { EnsureChildControls(); return... -
Composite Control default style attribute
I have a composite control that after dragging it onto the webform adds the following style attribute to the control: style="Z-INDEX: 101; LEFT:... -
Losing Composite Control property that another Composite Control ...
Hi, I'm creating 2 composite controls in ASP.net. Control 1 is a Search control and control 2 is a Map control. I have added a property... -
Composite control with dynamic controls depending on a property value
Hi, all. I am really stuck here. I've written a few composite controls before and fully understand the "typical" scenarios. However, this one is... -
Composite Control Property Setting Problem
I have built a simple composite control that consists of a textbox, requiredfieldvalidator and rangevalidator. For properties that are unique to...



Reply With Quote

