FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Issue with FreeTextBox Width in ASP.NET code

Last post 01-29-2010, 12:53 PM by thomas_r_a. 1 replies.
Sort Posts: Previous Next
  •  01-20-2010, 6:13 AM 10292

    Issue with FreeTextBox Width in ASP.NET code

    Hi,
    I've the following code but my FreeTextBox doesn't go to 100% width it instead shrinks to what I can only believe to be 100px:

    Dim I As Integer
    Dim FreeTextBoxArea As FreeTextBox

    For I = 1 To numberOfTextAreas
         FreeTextBoxArea = New FreeTextBox
         FreeTextBoxArea.ID = "textArea" & I
         FreeTextBoxArea.Text = I
         FreeTextBoxArea.Width = 100%
         formPlaceHolderTextAreas.Controls.Add(FreeTextBoxArea)
    Next
  •  01-29-2010, 12:53 PM 10314 in reply to 10292

    Re: Issue with FreeTextBox Width in ASP.NET code

    Have you tried:

    FreeTextBoxArea.Width = System.Web.UI.WebControls.Unit.Percentage(100);

     

View as RSS news feed in XML
www.freetextbox.com