Creating a new TypeConverter for asp.net controls

G

google

Hi

I want to create a TypeConverter derived from ControlIdConverter that
lists controls on a WebForm filtered so it only shows specific types,
e.g. just TextBoxes. I have looked at the code for ControlIDConverter
and overriden the FilterControl method.

This didn't work and on further investigation it seems I'm always
getting null passed in the context parameter of GetStandardValues.
This therefore goes no further and returns null as the list. Does
anyone know why null is being passed? I was expecting an
IDesignerHost, i.e. the WebForm designer so I could get the controls
on it.

Thanks
Russell Mason
 

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

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top