与登记表有关的问题 [英] Question related to registration form

查看:80
本文介绍了与登记表有关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生我在asp.net中制作招聘门户网站有4到5页我希望用户无法移动下一页而不填写上一页当用户尝试移动下一页时消息显示plz填充返回页面信息

sir i am making recruitment portal in asp.net in this there is 4 to 5 pages i want user can not be move next page without filling the previous page when user try to move next page an message show plz fill back page information

推荐答案

在Session中保留一个step count变量,当他们在第一页上启动表单时,执行类似


Keep a "step count" variable in the Session, and when they start the form on page one do something like

Session["Step"] = 1;





当他们提交该表格之后再继续第二步你更新会话





When they submit that form before you move on to step two you update the Session

Session["Step"] = 2;
Response.Redirect("Step2.aspx");





在step2.aspx页面加载中验证会话;





In step2.aspx page load you verify the session;

int step = 0;
if (Session["Step"] != null)
{
    step = (int)Session["Step"];
}

if (step != 2)
{
    // do something to handle this situation like redirect back to previous step
}





为流程中的每一步执行此操作。



Do this for each step in your process.


这篇关于与登记表有关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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