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?
/kWhen 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.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> 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
According to the helpfiles I should at least get some text, something like
"ControlName.ControlId" behind the green arrow.
/k
"Brock Allen" <ballen@.NOSPAMdevelop.com> wrote in message
news:776924632524329985712512@.msnews.microsoft.com ...
> 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.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
> > 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
If your control fails to render in the designer (such as throwing an exception),
then you'll see the behavior you describe.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> According to the helpfiles I should at least get some text, something
> like "ControlName.ControlId" behind the green arrow.
> /k
> "Brock Allen" <ballen@.NOSPAMdevelop.com> wrote in message
> news:776924632524329985712512@.msnews.microsoft.com ...
>> 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.
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> 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
>>
0 comments:
Post a Comment