慕斯王
1、修改mainFrame.aspx页面(框架中的页面mainFrame.src从cookie中读取)$(function() {if ($.cookie("url") != null) {document.getElementById("mainFrame").src = $.cookie("url");}})2、function Button1_onclick() {$.cookie("url","c.aspx) //先将c.aspx页面写入cookie;window.location.href = "MainFrame.aspx";//加载MainFrame.aspx,c.aspx加载时从cookie读取}