求大神帮下,关于学生管理系统的注册,登陆界面,和主界面切换

问题描述

主要是点击登陆中注册按钮后,注册完,返回到登陆界面,然后登陆后打开主界面,就是之间的切换不能实现....

解决方案

解决方案二:
window.location.href='你的页面.aspx'进行跳转就是了。
解决方案三:
html页面就是window.location.href=“跳转页面路径”如何是C#后台的直接重定向Response.Redirect("跳转路径");
解决方案四:
使用Panel动态切换注册登录内容示例//设置表单内容<formid="form1"runat="server"><div><asp:PanelID="plShow"runat="server"></asp:Panel></div><asp:ButtonID="btnlogin"runat="server"onclick="btnlogin_Click"Text="登录"/><asp:ButtonID="btnreg"runat="server"onclick="btnreg_Click"Text="注册"/></form>//codego.net/tags/11/1///aspx.cs页面设置protectedvoidbtnlogin_Click(objectsender,EventArgse){Labellb1=newLabel();lb1.Text="用户名:";Labellb2=newLabel();lb2.Text="密 码:";TextBoxtxtname=newTextBox();txtname.ID="txtN";TextBoxtxtpwd=newTextBox();txtpwd.ID="txtP";plShow.Controls.Clear();plShow.Controls.Add(lb1);plShow.Controls.Add(txtname);plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(lb2);plShow.Controls.Add(txtpwd);}protectedvoidbtnreg_Click(objectsender,EventArgse){plShow.Controls.Clear();Labellb1=newLabel();lb1.Text="用户名:";Labellb2=newLabel();lb2.Text="密 码:";Labellb3=newLabel();lb3.Text="性 别:";Labellb4=newLabel();lb4.Text="地 址:";TextBoxtxtname=newTextBox();txtname.ID="txtN";TextBoxtxtpwd=newTextBox();txtpwd.ID="txtP";RadioButtonListrb=newRadioButtonList();rb.Items.Add("男");rb.Items.Add("女");rb.ID="rbsex";rb.RepeatDirection=RepeatDirection.Horizontal;rb.SelectedIndex=0;TextBoxtxtaddr=newTextBox();txtaddr.ID="txtaddress";plShow.Controls.Clear();plShow.Controls.Add(lb1);plShow.Controls.Add(txtname);plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(lb2);plShow.Controls.Add(txtpwd);plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(lb3);plShow.Controls.Add(rb);plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(newLiteralControl("<br>"));plShow.Controls.Add(lb4);plShow.Controls.Add(txtaddr);}
解决方案五:
redirect就行了吧,或者使用forms验证的方法

时间: 2024-09-02 03:46:21

求大神帮下,关于学生管理系统的注册,登陆界面,和主界面切换的相关文章

求大神帮下忙,小弟需要一个java连接sql server数据库实现查询功能的代码

问题描述 求大神帮下忙,小弟需要一个java连接sql server数据库实现查询功能的代码 如题 求大神给个查询功能的代码 做毕业设计需要 帮帮忙 下面附上添加功能的代码 public int Add(Client c) { int count=0; try { con=this.getcon(); String sql=String.format("insert Client values('%s',%d,'%s','%s','%s','%s','%s',0,'%s')", c.g

c#-压缩问题,求大神帮下解决下

问题描述 压缩问题,求大神帮下解决下 { string[] filenames = Directory.GetFiles(source); //DirectoryInfo file = new DirectoryInfo(path); //foreach (FileInfo f in Directory.GetFiles) foreach (string file in filenames) { if (Directory.Exists(file)) { Compress(file s); //

在安装openshift的rhc后 输入rhc setup的命令出现下面的错误求大神帮下忙!!说下是什么原因或者解决办法

问题描述 C:Userswenxudong>rhcsetupC:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require':cannotloadsuchfile--dl/import(LoadError)fromC:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require'fromC:/Ruby22-x64

今天上传到小米应用平台 说以下错误 求大神帮分析下

问题描述 今天上传到小米应用平台 说以下错误 求大神帮分析下 java.lang.UnsatisfiedLinkError,dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/net.woaoo-2/base.apk"],nativeLibraryDirectories=[/data/app/net.woaoo-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn

jquery下拉菜单在浏览器中只显示1像素,求大神帮帮忙

问题描述 jquery下拉菜单在浏览器中只显示1像素,求大神帮帮忙 本人小菜鸟一枚,用jquery写了个简单的下拉菜单,代码如下:$(document).ready(function(){ $(""#navRight .jiantou"").hover(function(){ $(this).find("".xiangq"").stop().slideDown(""slow""); }f

recyclerview-进入页面虚拟机崩溃,找不到错误,求大神帮改下源码,谢谢啦

问题描述 进入页面虚拟机崩溃,找不到错误,求大神帮改下源码,谢谢啦 import android.app.Activity;import android.os.AsyncTask;import android.os.Bundle;import android.support.v7.widget.DefaultItemAnimator;import android.support.v7.widget.RecyclerView;import android.support.v7.widget.Sta

#c++#求大神帮我改正下,关于多态和虚函数的

问题描述 #c++#求大神帮我改正下,关于多态和虚函数的 #include using namespace std; class X1 { protected: int x; public: X1(int xx){x=xx;} virtual void output()=0; }; class Y1:private X1 { int y; public: Y1(int xx=0,int yy=0):X1(xx) {y=yy;} void output() { cout<<"x=&qu

jsp-JSP传给action的是字符串类型,转换数据类型,让getlist()接收,求大神帮帮忙写下代码

问题描述 JSP传给action的是字符串类型,转换数据类型,让getlist()接收,求大神帮帮忙写下代码 JSP传给action的是字符串类型,怎么转换数据类型,然后让getlist()接收,求各位大神帮帮忙写下代码~ 如果能够给解释一下,那就千恩万谢啦 解决方案 可以通过强制转换在前面加上int 解决方案二: gongWenLeiBieList = dao.getList(Integer.parseInt(mingCheng));

string-String字符串,求大神帮解答下

问题描述 String字符串,求大神帮解答下 String s9 = ""hello""+""world""; String s10 = ""helloworld""; System.out.println(s9==s10); String s11 = s4+""world""; System.out.println(s10==s11); s10与