我在寫網頁中用到<iframe>,並將它的Src設定為一個空的網頁,在用response.write("...")寫信息時,在我當前的網頁和<iframe>中都顯示了信息,但我只想讓它在<iframe>中顯示,該怎麼做?
解决方案 »
- 我的数据源是自动配置的,我想用代码在.CS里设置SqlDataSource,
- 字符串比较问题,哪位达人指教一下,谢谢!
- 遇到好几位老大都说从网页提取纯文本,用正则表达式不久可以了吗,真这么简单?
- 关于Session丢失问题
- GridView 中加入Dropdownlist控件的事件问题??
- 关于自定义类的引用的问题
- 弱弱的问一个问题
- 用C#开发window应用程序和ASP。NET WEB应用程序中DataGird控件的用法有什么区别?
- 验证视图状态 MAC 失败。请问这是怎么回事啊?
- 做了N张报表之后 我的水晶报表学习总结!!!!!!!!
- 能用DataTable.Select()函数搜索DataTable里的特定列吗?(在线结贴)
- 关于注册用户名的问题,牵扯到以后要手机邦定发短信,请高手指点儿!先谢谢了
s.Append("\n<script language=\"vbscript\">"+"\n");
s.Append("Sub Window_OnLoad()\n");
s.Append("window.fre.document.url = \"OtherPage.aspx"+"\"\n"); //fre是iframe的ID
s.Append("END SUB\n");
s.Append("</script>\n");
Page.RegisterStartupScript("ddd",s.ToString());
Shared Function ShowMessage(ByRef webform As UI.Page)
Dim i As Integer
i = UBound(message)
Dim line As Integer
Do While line < 15 And i >= 0
webform.Response.Write(message(i) & "<br>")
i -= 1
line += 1
Loop
End Function
<iframe id="frm"></iframe>
......
Response.Write "<script>document.all('frm').write('message');document.all('frm').close();</script>"