如何将数据发送回服务器?
问题描述:
有一个网页,我使用JS提取一些信息,并填写隐藏的
字段和我需要将其发送回服务器以在gridview中显示它。响应不是必需的。我要求数据的服务器与接收数据的数据相同。
怎么做?
谢谢..
Hi,
There''s a webpage from which I extract some information using JS,and fill the hidden
field and I need to send it back to server for display it in gridview. Response is not neccesary.The server I''m requesting the data from is the same that receives the data.
How to do this?
Thanks..
答
假设你有代码加载JS中的隐藏字段,只需在服务器上阅读:
Asssuming you have teh code to load the hidden field in JS, just read it at the server:
string hiddenFieldContent = Request.Form["hiddenFieldID"];