property as TextBox

Discussion in 'ASP .Net' started by kaasztelann, Oct 7, 2003.

  1. kaasztelann

    kaasztelann Guest

    The LabelProp property in properties-palette is expandable, so it is OK. The
    problems are:
    1. LabelProp is not persistent
    2. When I change LabelProp.Text in properties-palette, MyControl is NOT

    Please Help.

    C# CODE:

    public class MyControl: System.Web.UI.WebControls.WebControl
    Label lab_prop=new Label();

    public Label LabelProp
    set{lab_prop=value; }
    get{return lab_prop;}

    protected override void Render(HtmlTextWriter p_writer)

    kaasztelann, Oct 7, 2003
    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.