Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- From: jc <jobs@xxxxxxxxxx>
- Date: Tue, 9 Dec 2008 05:32:19 -0800 (PST)
This has to be something really stupid. I'm getting the above error on
the second to last line of this code.
I just want set the textbox's TextMode to multiline.
namespace BaseWSP{
public class BaseWSP : System.Web.UI.WebControls.WebParts.WebPart
{
TextBox text_box_input = new TextBox();
Label labelmsg = new Label();
Button button_submit = new Button();
Button button_reset = new Button();
DropDownList ddl = new DropDownList();
protected override void CreateChildControls()
{
text_box_input.ID = "txt_input";
text_box_input.TextMode = "multiline";
text_box_input.Rows = 15;
Thanks for any help or information.
.
- Follow-Ups:
- Re: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- From: Chris Dunaway
- Re: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- From: Gareth Erskine-Jones
- Re: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- From: Hans Kesting
- Re: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- Prev by Date: how to dispose of a streamwriter without closing the underlying stream
- Next by Date: Re: Checking if a file is readable
- Previous by thread: how to dispose of a streamwriter without closing the underlying stream
- Next by thread: Re: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBoxMode'
- Index(es):