使所有aspx页面位于一条路径上 [英] making all aspx pages on one path

查看:102
本文介绍了使所有aspx页面位于一条路径上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有登录页面和其他默认页面

每当我们运行aspx页面时,每个页面都会被执行

如何使所有页面按特定顺序运行

即...
1> LOGINPAGE.ASPX

2> DEFAULT1.ASPX

3> DEFAULT2.ASPX

4> DEFAULT3.ASPX

如果我开始执行DEFAULT3.ASPX,它应该从第一个IE ...从登录页面开始

i have login page and other default pages

whenever we run the aspx pages each one gets executed

how to make all the pages to run in a particular order

ie......
1>LOGINPAGE.ASPX

2>DEFAULT1.ASPX

3>DEFAULT2.ASPX

4>DEFAULT3.ASPX

IF I START EXECUTING DEFAULT3.ASPX IT SHOULD START FROM FIRST IE... FROM LOGIN PAGE

推荐答案

它出现在您希望页面按顺序运行的表面上就像向导样式的应用程序一样.
一种方法(绝不是我建议的最好方法)是使用会话或cookie来存储用户在任何给定时间点的进度.然后,每个页面只需要检查此进度cookie/会话值的值即可确定用户是否应位于他们要点击的给定页面上.如果用户在错误的页面上,则可以使用当前进度值来确定用户应在哪个页面上,然后重定向到该页面.
It appears on the surface that you want your pages to run in sequence much like a wizard style application would.
One way, and by no means to I suggest that it is the best way, would be to use either session or cookies to store the progress of the user at any given point in time. Then each page would just have to check the value of this progress cookie/session value to determine if the user should be on the given page they are trying to hit. If the user is on the wrong page, then you can use the current progress value to decide which page the user should be on and then redirect to it.


这篇关于使所有aspx页面位于一条路径上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆