Composite Control - Control sizing

Discussion in 'ASP .Net Building Controls' started by Eric, Sep 10, 2007.

  1. Eric

    Eric Guest

    I have created a fairly basic composite control consisting of a Label
    and a TextBox. In the overridden Render function, I'm creating a
    table with two rows and each row contains a cell (td). The Label and
    the TextBox are each rendered in one of the cells. Everything renders
    fine. The problem is that depending on the column the control
    represents I may want the textbox to be a different visible size
    during both design and runtime. I exposed a public property of the
    control to allow setting of the TextBox.Columns property but it does
    not seem to have any effect.

    Help would be appreciated.
     
    Eric, Sep 10, 2007
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.