将数据绑定到文本框 [英] Binding the data to textbox
本文介绍了将数据绑定到文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://localhost:1480/FrmSales.aspx?bill = 96 [
http://localhost:1480/FrmSales.aspx?bill=96[^]
Is it possible to bind the bill=96 to the texbox control which is available in FrmSales.aspx
推荐答案
TextBox1.Text = Request.QueryString("bill")
试试这个……
TextBox1.Text = Request.QueryString("bill")
Try this......
可以.
它们称为查询字符串.
Yes possible.
They are called Query Strings.
TextBox1.Text = Request.QueryString["bill"].ToString();
请参考:使用QueryString在页面之间传递变量 [
Refer: Passing variables between pages using QueryString[^]
您可以使用Session或在加载事件中使用,例如:
request.querystring ["data"].
you can use Session or in load event like:
request.querystring["data"].
这篇关于将数据绑定到文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文