复选框值访问另一页面 [英] check box value access in another page

查看:71
本文介绍了复选框值访问另一页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net中建立一个汽车比较门户网站,但我需要你的帮助。我已经制作了一个有9个复选框和一个比较按钮的页面,点击比较按钮后,控件将被转移到一个新页面。

请告诉我如何在这个新页面中访问这些复选框并显示结果。

请回复,尽管明天需要回复。

感谢你

i m making a car comparison portal in asp.net but i need your help. i have made a page which has 9 checkbox and a compare button, after hitting compare button, control is to be transferred to a new page.
please tell me how i can access those checkbox in this new page and show the result.
kindly reply, asap, it needs to be done by tomorrow.
thanking you

推荐答案

首先,您需要了解Http是无状态协议 [ ^ ]。



所以,除非你实现某些东西(使用查询字符串,会话,缓存等)来实现这种状态,否则你在前一页所做的工作将不再可用坚持并转移到另一页。



你可以 google [ ^ ]更多相关信息,但我总是依赖于MSDN文档:



http://msdn.microsoft.com/en-us/ library / 6c3yckfw.ASPX [ ^ ]
First, you need to understand Http is a stateless protocol[^].

So, what you have done in previous page is not available anymore until and unless you implement something (using query strings, session, cache etc.) to have that state persisted and transferred to another page.

You can google [^]more about this, however I always fall back on MSDN documentation:

http://msdn.microsoft.com/en-us/library/6c3yckfw.ASPX[^]


首先,这里的每个人都是自愿工作的志愿者。这对你来说很紧迫,但对其他人则不然。不要问这样的问题,因为它对你没有帮助,但反应会非常少。



此外,改变你的想法。您不应该从其他页面访问页面控件。您必须将所选复选框的值传递给该页面。因此,请尝试搜索如何:在ASP.NET网页之间传递值 [ ^ ]



在发布内容之前尝试一下。
First of all, everyone here is volunteer who work on their time. This can be urgent for you but not for others. Don't ask questions like this one as it won't help you but response will be very less.

Further, change the way you think. You are not suppose to access page controls from other pages. You have to pass values of selected checkboxes to that page. So try searching on How to: Pass Values Between ASP.NET Web Pages[^]

Try something before posting something.


这篇关于复选框值访问另一页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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