日期:2014-05-17  浏览次数:20460 次

iframe使用疑惑
有一页面A.aspx,它里面有两个iframe,如下:
<iframe name="I1" height="600px" src="left.aspx" frameborder="0"  
  scrolling="no" style="width: 265px; margin-top: 0px;" id="I1">
<iframe name="I2" height="600px" src="main.aspx" frameborder="0"  
  scrolling="no" style="width: 865px; margin-top: 0px;" id="I2">

在`left.aspx里有一个treeview控件,希望点击某一项,右边显示相应的页面,如b.aspx,c.aspx等,
代码在left.aspx.cs里该怎么写啊?(因为treeview控件的代码也在left.aspx.cs)

------解决方案--------------------
treeview.Target="I2"就可以了