Composite Control with FormView property tag prefix attribute?

M

Martin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top