如何将变量的值从Generic处理程序传递到我的.aspx页面 [英] How to pass value of a variable from Generic handler to my .aspx page
本文介绍了如何将变量的值从Generic处理程序传递到我的.aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人能告诉我如何将变量的值从我的处理程序传递到我的.aspx页面吗?我想把我的图像文件的路径传递给我的.aspx页面.ashx页面,我想将它存储到我的DB.But我无法传递值。请告诉我如何在我的.Aspx页面中获取它。
Hi,
can anybody tell me how to pass the value of a variable from my handler to my .aspx page?I want to pass the path of my image file to my .aspx page from .ashx page and there I want to store it to my DB.But I am unable to pass the value. Please tell me how can I get it in my .Aspx Page
推荐答案
你需要使用
You need to use
HttpContext
参考此链接
1. 我们什么时候可以使用HttpContext.Current.Items在ASP.NET中存储数据?
2. HttpContext请求
这篇关于如何将变量的值从Generic处理程序传递到我的.aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文