获取< TextArea>文本 [英] Get <TextArea> text
本文介绍了获取< TextArea>文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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
推荐答案
它需要有一个runat =" server"标签
" Wayne Wengert" < WA *************** @ wengert.com>在消息中写道
新闻: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" < WA *************** @ wengert.com>在消息中写道
新闻: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.
这篇关于获取< TextArea>文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文