使用url参数更改页面lode上的iframe srce [英] Change iframe srce on page lode with url parameters
本文介绍了使用url参数更改页面lode上的iframe srce的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让网上有iframe并更改iframe src和spasific srce,这是在url中给出的,例如www.web.com/isrc=\"/frame2.html我已经做了所有但不知道如何更改src使用url参数
i wnt to make web have iframe and change iframe src with spasific srce which is given in url for example www.web.com/isrc="/frame2.html" i have done all but did not know how to change src with url parameter
推荐答案
make your iframe runat = server并在代码后面添加此代码
iframeid .Attributes.Add(src,Webform1.aspx?id = 1);
make ur iframe runat=server and in code behind add this code
iframeid.Attributes.Add("src", "Webform1.aspx?id=1");
这篇关于使用url参数更改页面lode上的iframe srce的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文