如何从一个网页访问控件到另一网页 [英] how to access a control from one webpage to another page

查看:80
本文介绍了如何从一个网页访问控件到另一网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道如何将文本框文本从一个.aspx转换为另一个.aspx页,以便在文件后面的代码中进行某些数据库操作.(即)要包括在select查询中以与表的属性值进行比较
有人帮助我..


i want to know how to get the textbox text from one .aspx to another .aspx page for some database operation in code behind file.(i.e.) to include in select query to compare with an attribute value of a table
somebody help me..

推荐答案

您可以为此使用交叉发布:
http://msdn.microsoft.com/en-us/library/ms178139.aspx [ ^ ]

http://www.c-sharpcorner.com/UploadFile/DipalChoksi/xpgpostbk_asp2_dc08102006235543 /a> [ ^ ]

祝您好运!
You can use cross-posting for that:
http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]

http://www.c-sharpcorner.com/UploadFile/DipalChoksi/xpgpostbk_asp2_dc08102006235543PM/xpgpostbk_asp2_dc.aspx[^]

Good luck!


您可以使用全局变量,也可以使用会话变量将文本框的值分配给多个页面.
http://msdn.microsoft.com/en-us/library/ms178581.aspx [ ^ ]

http://kb2.adobe.com/cps/165/tn_16563.html [ ^ ]


您可以使用这些链接来了解会话变量.
you can use a global variable or also can use session variable to get value of a textbox to multiple pages..

http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]

http://kb2.adobe.com/cps/165/tn_16563.html[^]


you can use these links for session variable understanding..


我想您是从一个页面重定向到另一页面,然后要使用第一页的TextBox的值.

您可以通过QueryString将第一页的文本框"的值传递给另一页.
http://www.dotnetperls.com/querystring

使用Session的其他方法.
http://msdn.microsoft.com/en-us/library/ms178581.aspx
I guess you are Redirecting from one Page to another Page and then want to use value of TextBox of First Page.

You can pass value of TextBox of First Page to another Page by QueryString.
http://www.dotnetperls.com/querystring

Other way by using Session.
http://msdn.microsoft.com/en-us/library/ms178581.aspx


这篇关于如何从一个网页访问控件到另一网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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