在按钮单击时在文本框中显示隐藏的变量值 [英] Displaying hidden variable values in text box on button click

查看:76
本文介绍了在按钮单击时在文本框中显示隐藏的变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我是asp.net的新手。我有一个问题。我有一个多行文本框和链接按钮说明名字,姓氏,电子邮件和相应的隐藏字段与每个文本框。我的问题是,假设我输入一些文本后我按linkbutton firstname(说).so隐藏字段中的值与此链接按钮将显示在文本框中。


感谢提前


问候

Yogesh

解决方案

什么?

我不清楚你要做什么,但是javascript应该能够从一个控件获取值(隐藏或者把它放在另一个控件中



什么?

我不清楚什么你试图这样做,但javascript应该能够从一个控件(隐藏或其他)获取值并将其放入另一个控件



我想显示值按钮上的隐藏字段单击文本框


然后javascript将成为它的方式。


类似于:

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


Dear All
Iam new to asp.net. I had a problem. I have a multiline textbox and link buttons say firstname,lastname, Emails and corresponding hidden fields with each textbox.My problem is that suppose i typed some text afterwards i press linkbutton firstname(say).so the value in hidden field associated with this link button will display in the text box.

Thankx In Advance

Regards
Yogesh

解决方案

What?
I''m not clear with what you are trying to do, but javascript should be able to take the value from one control(hidden or otherwise) and put it in another control


What?
I''m not clear with what you are trying to do, but javascript should be able to take the value from one control(hidden or otherwise) and put it in another control

I want to display value of hidden field on button click in textbox


Then javascript would be the way of it.

Something like:

Expand|Select|Wrap|Line Numbers


这篇关于在按钮单击时在文本框中显示隐藏的变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆