帮忙,我想在asp(不是asp.net)中实现如下 100分 up有份 我的想法是:你可以记录你转过页面的次数为N,然后history.go(-N) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <table cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table1"> <tr> <td align="center"><input value="页面一"></td> </tr> <tr> <td height="1" align="center"><button onclick="爽(2)">页面二</button><button onclick="爽(3)">页面三</button></td> </tr></table><table cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table2" style="display:none"> <tr> <td align="center"><input value="页面二"></td> </tr> <tr> <td height="1" align="center"><button onclick="爽(1)">页面一</button><button onclick="爽(3)">页面三</button></td> </tr></table><table cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table3" style="display:none"> <tr> <td align="center"><input value="页面三"></td> </tr> <tr> <td height="1" align="center"><button onclick="爽(2)">页面二</button><button onclick="爽(3)">页面三</button></td> </tr></table><script language="javascript"> function 爽(哈哈) { var ThisTable = eval("document.all.Table"+ 哈哈); document.all.Table1.style.display = 'none'; document.all.Table2.style.display = 'none'; document.all.Table3.style.display = 'none'; ThisTable.style.display = ''; }</script>你可以在td里面方iframe 页面1.asp:<form action="2.asp" method="post"><input name="userName" value='<%Request["page1_userName"]%>'><input type=submit value=提交></form>页面2.asp:<form action="1.asp" method="post"><input name="page1_userName" type=hidden value='<%Request["userName"]%>'><input type=submit value=提交></form>这样你就不用手动保存就可以恢复原来的值了思路是把1.asp中的value值都发到2.asp中在2.asp中使用隐藏字段保存这些值当2.asp处理完后,再提交到1.asp 用JavaScript把当前页面的状态拼成一个字符串,在不同的页面之间跳转的时候传递这个字符串,(当然可以修改字符串)当回到这个页面的时候再次解析字符串,设置控件的状态。 同意楼上用session或hidden的,简便易行^_^ pignet(猪.net)說得對,要使用frame或是iframe才能很好的達到效果 GridView删除问题 dropdownlist绑定之后无法显示,请教了。。。 MVC在cshmtl中指定Controller和Action的问题~ 谁能给推荐一个asp.net 2.0 三层架构的教程或者电子书? CheckBoxList的使用 AjaxPro中dataview的使用问题和程序行不执行的问题 刚玩2005,碰到些问题不会!请帮助下 关于梅花雨日历控件,我怎么显示不了值? 一个页面中须用到另外多个.cs中的类怎么引用? 分析器错误信息: 访问被拒绝:“**程序集”。 web中groupbox怎么做? 指定DataSource老是报错,不知道错在什么地方
<tr>
<td align="center"><input value="页面一"></td>
</tr>
<tr>
<td height="1" align="center"><button onclick="爽(2)">页面二</button><button onclick="爽(3)">页面三</button></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table2" style="display:none">
<tr>
<td align="center"><input value="页面二"></td>
</tr>
<tr>
<td height="1" align="center"><button onclick="爽(1)">页面一</button><button onclick="爽(3)">页面三</button></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table3" style="display:none">
<tr>
<td align="center"><input value="页面三"></td>
</tr>
<tr>
<td height="1" align="center"><button onclick="爽(2)">页面二</button><button onclick="爽(3)">页面三</button></td>
</tr>
</table>
<script language="javascript">
function 爽(哈哈)
{
var ThisTable = eval("document.all.Table"+ 哈哈);
document.all.Table1.style.display = 'none';
document.all.Table2.style.display = 'none';
document.all.Table3.style.display = 'none';
ThisTable.style.display = '';
}
</script>
你可以在td里面方iframe
<form action="2.asp" method="post">
<input name="userName" value='<%Request["page1_userName"]%>'>
<input type=submit value=提交>
</form>页面2.asp:
<form action="1.asp" method="post">
<input name="page1_userName" type=hidden value='<%Request["userName"]%>'>
<input type=submit value=提交>
</form>这样你就不用手动保存就可以恢复原来的值了
思路是把1.asp中的value值都发到2.asp中
在2.asp中使用隐藏字段保存这些值
当2.asp处理完后,再提交到1.asp
在不同的页面之间跳转的时候传递这个字符串,(当然可以修改字符串)
当回到这个页面的时候再次解析字符串,设置控件的状态。