Ask a Question related to ASP.NET General, Design and Development.
-
Phil S. #1
Composite controls in a DataGrid
I'm having dreadful trouble putting a simple composite control into the
DataGrid cell, so I'm hoping someone might have stumbled across this problem
before and have some advice.
My composite control is a date picker which contains a couple of basic text,
drop down and image button controls. My control follows the composite design
guidelines carefully and behaves perfectly when used on a web page. It uses
ViewState and gets events from is child controls without problems.
When my composite control is added to the Controls collection in a DataGrid
cell it all goes wonky.
When called by the DataGrid OnItemDataBound I create the control with the
same ID each time and add it to the Controls in a cell. The control appears
correctly, but the following goes wrong:
* The ViewState keeps coming back null.
* The control events don't fire the first time, but do on the second and
following clicks.
I've been stuck on this problem for several hours and I'm getting quite
frustrated. Any advice or suggestions would be most welcome.
Thanks
Phil
Phil S. Guest
-
Example of Building Composite Controls in ASP.NET 2.0
Hi, I am building a library of composite controls in ASP.NET 2.0. My controls consist of a regular ASP.NET control like a text box and a bunch... -
Getting id of composite child controls
I can't seem to get the id of the child controls of my composite control. I can get the unique id but the id when I try to access it via the... -
composite controls... Microsoft Press: Dev ASP.NET Server Controls
I have the Microsoft Press: Developing Microsoft ASP.NET Server Controls and Components book. It's starting to shine some light on control... -
Composite Controls (Maybe I just don't get it)
I've been searching for a while and have found jack on composite controls... Most source say it is as easy as this .. what is wrong with the... -
Composite Controls
I was trying to do the following but maybe .net isn't capable of this... 1.) Build a control in the designer that includes multiple controls,...



Reply With Quote

