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

Discussion in 'ASP .Net Building Controls' started by amanda.shen@grapecity.com, Jan 5, 2006.

  1. Guest

    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?
     
    , Jan 5, 2006
    #1
    1. Advertising

  2. Guest

    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);
    }
    }
     
    , Jan 5, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Annie
    Replies:
    3
    Views:
    7,526
    Annie
    Sep 11, 2005
  2. Luqman
    Replies:
    1
    Views:
    657
    Luqman
    Feb 7, 2006
  3. Woolly Mittens
    Replies:
    8
    Views:
    433
    Woolly Mittens
    Sep 22, 2003
  4. Replies:
    2
    Views:
    8,734
  5. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    182
    Fabricio
    Sep 21, 2005
Loading...

Share This Page