如何将数据发送回服务器? [英] How to send data back to server?

查看:109
本文介绍了如何将数据发送回服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





有一个网页,我使用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"];


这篇关于如何将数据发送回服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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