如何将参数传递给ifram标签内的网页 [英] How to pass parameters to webpage which is inside ifram tag
本文介绍了如何将参数传递给ifram标签内的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi
i有三个网页示例网页,网页B,网页C.
i我显示所有网页,例如
< html> //网页B >
< iframe src =网页A>
< / iframe>
< / html>
来自网页C
Response.Redirect(网页B?一些查询字符串传递);
如何通过网页B向网页A发送参数?
解决方案
你应该遵循这个..
http://stackoverflow.com/questions/12400994/how-do-i-pass-parameters-throught-ifram-in-asp-net [ ^ ]
您可以编写< iframe> as -
< iframe < span class =code-attribute> src = WebFormA.aspx?paramInA = <% = Request.QueryString [ paramInB]。ToString()%> 宽度 = 200 height = 200 > < / iframe >
您将参数paramInB传递给WebformB .aspx喜欢 -
http: // localhost / WebFormB.aspx?paramInB = A34AMX345 跨度>
Hi
i have three web pages example WebpageA,WebpageB,WebpageC.
i am display all webpages like
<html>//WebpageB
<iframe src="WebpageA">
</iframe>
</html>
From WebpageC
Response.Redirect("WebpageB"?some query string passing);
how can i send parameters to WebpageA via WebpageB?
解决方案
You should follow this..
http://stackoverflow.com/questions/12400994/how-do-i-pass-parameters-throught-ifram-in-asp-net[^]
You can write the <iframe> as -
<iframe src="WebFormA.aspx?paramInA=<%=Request.QueryString["paramInB"].ToString() %>" width="200" height="200"></iframe>
where you are passing parameter paramInB to the WebformB.aspx like -
http://localhost/WebFormB.aspx?paramInB=A34AMX345
这篇关于如何将参数传递给ifram标签内的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文