Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 从ashx页面访问文本框值_Asp.net_Vb.net_Master Pages_Ihttphandler - Fatal编程技术网

Asp.net 从ashx页面访问文本框值

Asp.net 从ashx页面访问文本框值,asp.net,vb.net,master-pages,ihttphandler,Asp.net,Vb.net,Master Pages,Ihttphandler,这是母版页中的我的表单标签: 我的内容页中有一个文本框: 我想访问Handler.ashx页面中的TextBox值,或将TextBox值作为action属性中的查询字符串发送,如下所示 这可能吗?我相信问题在于访问GenericHttpHandler中文本框的ID(ClientID或UniqueID) 但是,如果您将clientdmode=“Static”设置为文本框属性,如果您使用ASP.Net 4并尝试以下代码,这是可能的 context.Request.Params("TextBox

这是母版页中的我的表单标签:

我的内容页中有一个
文本框

我想访问
Handler.ashx
页面中的
TextBox
值,或将
TextBox
值作为
action
属性中的查询字符串发送,如下所示


这可能吗?

我相信问题在于访问GenericHttpHandler中文本框的ID(ClientID或UniqueID)

但是,如果您将clientdmode=“Static”设置为文本框属性,如果您使用ASP.Net 4并尝试以下代码,这是可能的

 context.Request.Params("TextBox1")

我想我们可以在请求中检查这个。Params[“”]@Murali我试过了,但没有成功。我想问题是获取客户端id或唯一id。我猜这就是我正在做的
上下文。Request.Params(“TextBox1”)
,我从代码后面调用它,那么我如何获得唯一id或客户端id呢?已经尝试过了…运气不好…以防这有助于我的页面无法发回..这可能是原因吗?