资源简介
这是一个用C#语言写的网站后台,HTML+CSS+JS前端,画面丰富
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class register : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
}
protected void Button1_Click(object sender EventArgs e)
{
string usr = TextBox1.Text.Trim();
string pas = TextBox2.Text.Trim();
if (usr == ““ || pas == ““ || usr == “用户名/邮箱“ || pas == “密码“)
{
Label1.Text = “用户名或密码不能为空!“;
}
string Constr = “Data Source = (LocalDB)\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\Database.mdf;Integrated Security=True“;
SqlConnection cns = new SqlConnection(Constr);
try
{
cns.Open();
// Button1.Text = “登录成功!“;
// Button1.Enabled = false;
}
catch (Exception msg)
{
Label1.Text = msg.ToString();
}
SqlCommand cmd = new SqlCommand();
cmd.Connection = cns;
cmd.CommandText = “select password from [Personinformation] where users = N‘“ + usr + “‘“;
object tmp = cmd.ExecuteScalar();
if (tmp == null || tmp == DBNull.Value)
{
Label1.Text = “用户名不存在“;
}
else
{
if (pas == tmp.ToString())
{
Session[“user“] = usr;
Response.Redirect(“zhuye.aspx“);
}
else
{
Label1.Text = “密码不正确“;
}
}
cns.Close();
}
protected void Button3_Click(object sender EventArgs e)
{
Response.Redirect(“zhuce.aspx“);
}
protected void Button1_Click1(object sender EventArgs e)
{
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 85619 2018-06-13 12:55 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\.vs\config\applicationhost.config
..A..H. 389120 2018-06-17 10:07 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\.vs\scnu xianyu\v15\.suo
文件 0 2018-05-14 18:47 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\.vs\scnu xianyu\v15\Server\sqlite3\db.lock
文件 1118208 2018-06-17 10:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\.vs\scnu xianyu\v15\Server\sqlite3\storage.ide
文件 3722 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props
文件 2131 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\content\net45\web.config.install.xdt
文件 742 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\content\net45\web.config.uninstall.xdt
文件 2142 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\content\net46\web.config.install.xdt
文件 742 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\content\net46\web.config.uninstall.xdt
文件 33256 2017-10-16 14:14 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
文件 1805 2017-10-16 14:08 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xm
文件 41473 2018-05-14 18:39 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8.nupkg
文件 16121 2017-10-16 14:13 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\tools\net45\install.ps1
文件 13665 2017-10-16 14:13 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\tools\net45\uninstall.ps1
文件 2950 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\build\Microsoft.Net.Compilers.props
文件 6751847 2018-05-14 18:39 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\Microsoft.Net.Compilers.2.4.0.nupkg
文件 10365 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\ThirdPartyNotices.rtf
文件 47576 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csc.exe
文件 8220 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csc.exe.config
文件 1496 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csc.rsp
文件 15312 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csi.exe
文件 8816 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csi.exe.config
文件 279 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\csi.rsp
文件 113168 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll
文件 4357640 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CodeAnalysis.CSharp.dll
文件 29728 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CodeAnalysis.CSharp.sc
文件 1993720 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CodeAnalysis.dll
文件 129544 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CodeAnalysis.sc
文件 5081616 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CodeAnalysis.VisualBasic.dll
文件 8219 2017-09-21 23:42 最终发布版_v2\合并V6\Freefish\Freefish\Freefish\scnu xianyu\packages\Microsoft.Net.Compilers.2.4.0\tools\Microsoft.CSharp.Core.targets
............此处省略336个文件信息
- 上一篇:Reflector.zip
- 下一篇:网奇E游通旅游网站建设系统.net版v1.5
评论
共有 条评论