How to position a custom webcontrol relatively under vs.net 2005?

A

amanda.shen

When I update my webcontrol form .net 2003 to .net 2005, one question
occured.
My webcontrol can not be moved when it is put on a web form.
Its(layout / position/ relative) can not be set.
Why?
How to solve this problem?
 
A

amanda.shen

I have solve this problem.
maybe i should add a condition (designmode) before render data.

public override void RenderEndTag(HtmlTextWriter writer)
{
base.RenderEndTag(writer);

if (!this.DesignMode && this.EnableClientScript)
{
this.RenderData(writer);
}
}
 

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,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top