将值从HTML页面传递到Aspx页面 [英] Passing values from HTML Page to Aspx Page

查看:79
本文介绍了将值从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://stackoverflow.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://stackoverflow.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


这篇关于将值从HTML页面传递到Aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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