How can I make a Sharepoint textbox (input, type=text) dynamically Multiline?
问题 I want a textbox on my Web Part that will grow vertically on demand. That is, it will be one line unless the user enters too much text for that line, at which point it word wraps and grows vertically to accommodate the verbosity of the user. I am creating my controls/elements dynamically, and I create this element like so: boxPaymentExplanation = new TextBox() { CssClass = "dplatypus-webform-field-input" }; boxPaymentExplanation.Width = 660; boxPaymentExplanation.Style.Add("display", "inline