Web Custom Control default rendering

K

kurt sune

I have quite an annoying error.

I have created a web custom control.

When I put it on a web page I do not get: "The control's default
rendering, which is simply the name of the control followed by its ID,
appears in the Design view. "

Instead I get only the small little green arrow. I do not get "the name of
the control followed by its ID".

What have I done wrong?

/k
 
B

Brock Allen

When VS.NET is in design mode with a custom control, it actually creates
an instance live in the designer. That live instance is actually rendered,
so my guess is that your Render method isn't doing anything very interesting,
thus the pseudo-blank space.
 
K

kurt sune

According to the helpfiles I should at least get some text, something like
"ControlName.ControlId" behind the green arrow.


/k
 
B

Brock Allen

If your control fails to render in the designer (such as throwing an exception),
then you'll see the behavior you describe.
 

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,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top