简体   繁体   English

vs2010 vb.net中的iFrame

[英]iFrame in vs2010 vb.net

I am trying to insert a iFrame into my web form. 我正在尝试将iFrame插入我的网络表单。 And i have a list of data from my database. 而且我有来自数据库的数据列表。 It uses a sql data source to retrieve the data in the data base. 它使用sql数据源检索数据库中的数据。 I would want to bind it to the src of iFrame is that possible? 我想将其绑定到iFrame的src,这可能吗? I tried doing it but it doesnt give me a way to bind it. 我尝试这样做,但是它没有给我绑定方法。

From my understanding iframe tag defines an inline frame that contains another document. 根据我的理解, iframe标记定义了一个内联框架,其中包含另一个文档。

So if i were you i would create a new page which has a data control within its body which you would bind that data into it. 因此,如果您是我,我将创建一个新页面,该页面的主体内部具有数据控件,您可以将该数据绑定到其中。

Then you would link it to the iframe 然后,您将其链接到iframe

<iframe src="SomePage.aspx" width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM