将表单控件值推送到下一页 [英] Pushing form control values to subsequent page
本文介绍了将表单控件值推送到下一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将用户名和密码放在header.username和password文本框中都是html text.我如何调用nextpage的值.通常我知道vtextbox控件是由textboxid.text调用的,但是...
textbox1.text =;
这是正常的,
同样地,我在html文本框中输入的内容
来自JSOP ==================
您的标题太长,因此我将其放入问题本身,然后猜测您要问的内容,并相应地更改了标题.
i put the username and password in header.both username and password textbox are html text.how i call the values to nextpage.normally i know the vtextbox control are called by textboxid.text but...
textbox1.text=;
it is the normal,
the sameway how i put in html text box
From JSOP==================
Your title was too long so I put it into the question itself, and then guessed at what you''re trying to ask, and changed the title accordingly.
推荐答案
要在服务器端获取HTML文本框的值,可以使用Request.Form[TextBoxName]
,也可以为该文本框提供ID并设置runat=server
,在这种情况下,您可以获取文本框的值,例如txtUserName.Value
要在页面之间传递值,您可以检查以下链接.
http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx [ ^ ]
To get the value of a HTML textbox at server side you can useRequest.Form["TextBoxName"]
or you can provide a id to the textbox and set therunat="server"
in this case you can get the value of textbox liketxtUserName.Value
To pass the values between the pages you can check following link.
http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx[^]
这篇关于将表单控件值推送到下一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文