如何将值从一个页面转发到下一页 [英] how to forward value from one page to next page
本文介绍了如何将值从一个页面转发到下一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的第一页
受保护的 Sub b_addq_Click( ByVal sender 作为 对象 , ByVal e As System.EventArgs) Handles b_addq.Click
url = addoption.aspx?l_qid = &安培; tb_qid.Text& l_ques =& tb_ques.Text
Response.Redirect(url)
结束 Sub
第二页
l_qid.Text = Request.QueryString( l_qid)
l_ques.Text = Request.QueryString( l_ques)
i got l_qid中的两个值
解决方案
你错过& (查询字符串分隔符)。
纠正这一行:
url = addoption.aspx?l_qid =& tb_qid.Text& l_ques =& tb_ques.Text
to
url = addoption.aspx?l_qid =& tb_qid.Text& & l_ques =& tb_ques.Text
my first page
Protected Sub b_addq_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles b_addq.Click
url = "addoption.aspx?l_qid=" & tb_qid.Text & "l_ques =" & tb_ques.Text
Response.Redirect(url)
End Sub
second page
l_qid.Text = Request.QueryString("l_qid")
l_ques.Text = Request.QueryString("l_ques")
i got both value in l_qid
解决方案
You missed & (querystring separator).
Correct this line:
url = "addoption.aspx?l_qid=" & tb_qid.Text & "l_ques =" & tb_ques.Text
to
url = "addoption.aspx?l_qid=" & tb_qid.Text & "&l_ques =" & tb_ques.Text
这篇关于如何将值从一个页面转发到下一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文