将值从HTML页面传递到Aspx页面

问题描述:



晚上好,



在我的应用程序中,我有一个aspx页面和一个HTML页面被渲染到aspx页面。所以我需要使用JavaScript或JQuery将数据从html页面传递到ASPX页面(我应该在aspx页面中获取值)?



请用正确的例子解释一下?

提前谢谢

Hi,
Good Evening,

Here in my application I have an aspx page and an HTML page where the HTML page should be rendered into aspx page.So I need to pass the data from html page to ASPX page(I should get the values in the aspx page) using JavaScript or JQuery ?

Please explain with proper example?
Thanks in advance

查询字符串可以是其中一个选项。您可以使用ajax帖子。



参考 http://*.com/questions/13340783/how-to-pass-value-from-html-to-a-aspx-files-in-visual-studio -2010 [ ^ ]



然后使用javascript检索相同的内容。



http:// www。 wpreads.com/2013/10/retrieving-query-string-values-by-javascript.html [ ^ ]



希望这有帮助
Query string can be one of the option. You can use an ajax post for the same.

Refer http://*.com/questions/13340783/how-to-pass-value-from-html-to-a-aspx-files-in-visual-studio-2010[^]

Then use javascript to retrieve the same.

http://www.wpreads.com/2013/10/retrieving-query-string-values-by-javascript.html[^]

Hope this helps