一段ASP。NET的IFRAME的页面跳转
<script>window.parent.document.getElementById('BIframe').src='B.aspx';</script>
http://www.cnblogs.com/lijigang/archive/2007/05/18/751943.html
再来看看第二种刷新方法:“重载页面”
<script>window.parent.document.frames.BIframe.RefreshmyForm();</script>
<script language="javascript" type="text/javascript">
14 function RefreshmyForm()
15 {
16 var myForm = document.Form1;
17 myForm.submit();
18 }
19 </script>
那么有人就会问了,如何在Iframe的页面中来刷新父页面呢?
我们仍然在C.aspx页面中做这个事情,加入“Button3”,Text属性为“重定向A.aspx页面”,C.aspx的脚本代码我们在这里省略。子页C.aspx的后台代码:
主要关心Button3的Click事件
1 private void Button3_Click(object sender, System.EventArgs e)
2 {
3 this.Response.Write("<script>window.parent.location=window.parent.location;</script>");
4 }
相关文档:
<style type="text/css">
.container, .container *{margin:0; padding:0;}
.container{width:325px; height:287px; overflow:hidden;position:relative; margin-left:5px; margin-top:6px;}
.slider{position:absolute;}
.slider li{ list-style:none;display:inline;}
.slider img{ width:325px; height:287p ......
<!--#include file=common.asp-->
<%
'**********************************************
' code by asp导出excel通用
' 修改引用 by 子言(jastudio)
' qq:23638564 email:kpggdf@163.com
' web:www.gdsspt.com
'**********************************************
dim xibua
dim mysql
xibua = request ......
ASP如何连接数据源?(系统DSN)中建立的数据源?
ASP怎么建立连接,不是OLEDB方式,用ODBC中的“用户DSN”建立的数据源进行连接?如何操作?
问题补充:我的是ODBC中的“用户DSN”不是“系统DSN”,“用户DSN”怎么连接?而且我的数据库有密码。
提问者:匿名
最佳答案
Set co ......
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
if Request("MailtoAddress") <> "" then
msg = SendMail
(Request("SMTPServer"),Request("SMTPServerUserName"),Request("SMTPServerPassword"),
Request("MailDom ......
今天遇到一个asp程序,用ReWrite重写URL后,中文参数乱码,查资料后说是ReWrite所接收的参数自动转为UTF-8,而我的前台页面和数据库都为GB2312格式,后来在网上找了好久,终于找到一个能成功将UTF-8转换为GB2312的函数,函数转换代码如下
<%
function CodeConvert(fileContent)
dim stm
set stm=Server.Crea ......