问题描述
您好,
当我尝试扩展文本框时出现问题。
所以我覆盖了Render方法。对于我尝试做的事情,我希望
将自定义属性添加到我的自定义文本框中。
因此它呈现如下内容:
< input ... myattribute =" value" />
我修改了myattribute的值使用javascript,但是当我提交我的
表格时,我无法获得myattribute的价值。
我是否必须创建创建一个类扩展了属性类?我如何
必须继续?
提前谢谢你,
Fabien。
Hello,
I got a problem when I try to extend a textbox.
So I overwrite the Render method. For the stuff I try to do, I would like
to add a custom attribute to my customized textbox.
So it renders something like this:
<input ... myattribute="value" />
I modify the value of "myattribute" using javascript, but when I submit my
form, I can''t get the value of "myattribute".
Do I have to create create a class extended the attribute class? How do I
have to proceed?
Thank you in advance,
Fabien.
推荐答案
提交表单时,每个表单元素都带有name和name。属性和
" value"属性将作为名称=值对的对或集发送。对于
示例< input type =" hidden"名称= QUOT;颜色"值= QUOT;蓝色" /这个元素将
提供color = blue。
HTH
When you submit the form, each form element with a "name" attribute and a
"value" attribute will be sent as a ''pair'' or ''set'' of name=value pairs. For
example <input type="hidden" name="color" value="blue" / this element will
provide color=blue.
HTH
当您提交表单时,每个表单元素都带有name和name。属性和
" value"属性将作为名称=值对的对或集发送。
例如< input type =" hidden"名称= QUOT;颜色"值= QUOT;蓝色" /这个
元素将提供color = blue。
HTH
When you submit the form, each form element with a "name" attribute and a
"value" attribute will be sent as a ''pair'' or ''set'' of name=value pairs.
For example <input type="hidden" name="color" value="blue" / this
element will provide color=blue.
HTH
当您提交表单时,每个表单元素都带有name和name。属性和
值属性将作为名称=值对的对或集发送。
例如< input type =" hidden"名称= QUOT;颜色"值= QUOT;蓝色" / this
元素将提供color = blue。
HTH
When you submit the form, each form element with a "name" attribute and a
"value" attribute will be sent as a ''pair'' or ''set'' of name=value pairs.
For example <input type="hidden" name="color" value="blue" / this
element will provide color=blue.
HTH
这篇关于扩展控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!