请帮我修改此代码 [英] Please help me modify this code

查看:79
本文介绍了请帮我修改此代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我知道的登录代码,但是我还没有创建任何数据库,我想登录并进入第二页,请我修改该代码

This is login code which I know, but I have not create any Database and I want to login and get to second page please me to modified the code

if(tbusername.text!="username") 
{
messageBox.show("Worng Username and Password");
}
else
{
messageBox.show("Correct");
}




请帮忙,我希望它应该为空白,然后我登录并转到下一页



在此先感谢




Please help I want it should be blank and I sign in and go to next page



Thanks in Advance

推荐答案

这可能会有所帮助:

C#Apps中的多个后续主表单 [ ^ ]
This might help:

Multiple Subsequent Main Forms in C# Apps[^]


您正在谈论的类似Web应用的声音:
试试:
Sounds like web app you are talking of:
Try:
if(tbusername.text!="username") 
{ 
   myLabel.Text = "Wrong Username or Password";
}
else
{
   Response.Redirect("~/SecondPage.aspx");
}


我想如果您使用的是ASP.NET,最好对它使用Login控件.

检查
http://www.asp.net/general/videos/login-control [ ^ ]

我相信您会知道它是如何工作的. :thumbsup :: thumbsup:
If you are in ASP.NET I guess, it is better to use Login control for the same.

Check
http://www.asp.net/general/videos/login-control[^]

I am sure you will get how it works. :thumbsup::thumbsup:


这篇关于请帮我修改此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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