且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取< TextArea>文本

更新时间:2023-02-19 17:04:18

它需要有一个runat =" server"标签


" Wayne Wengert" &LT; WA *************** @ wengert.com&GT;在消息中写道

新闻:uD ************** @ tk2msftngp13.phx.gbl ...
It needs to have a runat="server" tag

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
有没有办法ASP.NET / VB代码隐藏得到一个简单的内容

< textarea>元件?我在< textarea>中添加了一个id =''myname''标签,但VSNET
抱怨它未定义?

Is there a way for ASP.NET/VB codebehind to get the contents of a plain
old
<textarea> element? I added an id=''myname'' to the <textarea> tag but VSNET
complains that it is undefined?

Wayne



Wayne,>
您是否还添加了runat = server属性?


希望这会有所帮助,

Mark Fitzpatrick

Microsoft MVP - FrontPage


" Wayne Wengert" &LT; WA *************** @ wengert.com&GT;在消息中写道

新闻:uD ************** @ tk2msftngp13.phx.gbl ...
Wayne,
Did you also add the runat=server attribute?

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
有没有办法ASP.NET / VB代码隐藏得到一个简单的内容

< textarea>元件?我在< textarea>中添加了一个id =''myname''标签,但VSNET
抱怨它是未定义的?

Wayne
Is there a way for ASP.NET/VB codebehind to get the contents of a plain
old
<textarea> element? I added an id=''myname'' to the <textarea> tag but VSNET
complains that it is undefined?

Wayne



您可能想要使用< asp:TextBox />反过来控制,并且

将其TextMode属性设置为MultiLine。然后它会渲染一个textarea,

并提供一些额外的功能。

You may want to use the <asp:TextBox /> control instead by the way, and
set its TextMode property to MultiLine. It''ll then render a textarea,
and provide some additional functionality.