怎样在Webpart中添加一个网页链接,让其显示出内容来?
目的: 我想在一个webpart中显示出一块页面内容出来,而页面内容是由URL地址来链接的,类拟于http://community.csdn.net/Tree/tree.htm 这个链接。
现在:我已创建了webpartzone ,也创建了一个名字叫 csdn.ascx 文件,在csdn.ascx 里面,代码是这样的:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="sohu.ascx.cs" Inherits="sohu" %>
<table style="width: 641px; height: 377px">
<tr>
<td>
<iframe src="http://community.csdn.net/Tree/tree.htm" width="100%" height="100%" frameborder="0" id="ProvinceCity" name="ProvinceCity" scrolling="yes"></iframe>
</td>
</tr>
</table>
然后把 csdn.ascx添加到 webpartzone中,但并没有显示出我想要的内容。声明一下,其它的webpart显示控件就可以正常显示出来。
高分求教啊。....