如何使用post()方法将数据传递到iframe
问题描述:
我使用查询字符串将数据asp.net页发送到i框架.我有查询字符串的问题.错误显示此消息,因为查询字符串大小很大.
我想使用post方法发送数据.如果您有解决此问题的方法,请为我分享信息.
预先感谢.
i send the data asp.net page to i frame with using query string. i have problem with query string. error shows the message as the query string size is high.
i want to send the data with using post method. if you any solution for this problem, share the information for me .
Thanks in advance.
答
使用jQuery,您可以将值传递到iFrame页面内的函数中.
例如:
Using jQuery you could pass values into a function that is inside the page in the iFrame.
For example:
(" span>).contentWindow.FunctionName(parm1,parm2,parm3);
("#idOfiframe").contentWindow.FunctionName(parm1, parm2, parm3);