后台登陆页面源码(登录界面源代码)
本文目录一览:
急求.NET 后台登陆源码(c#语言),包括.aspx和.cs文件
.aspx
%@ Page Language="C#" AutoEventWireup="true" CodeFile="test11.aspx.cs" Inherits="test11" %
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
html xmlns=""
head runat="server"
title无标题页/title
style type="text/css"
.style1
{
width: 73px;
}
/style
/head
body
form id="form1" runat="server"
div align="center"
table width="220px" style="align:center"
tr
td class="f6d7-2cfe-03e1-7737 style1"
span lang="zh-cn"用户名:/span/td
td
asp:TextBox ID="txtname" runat="server"/asp:TextBox
/td
/tr
tr
td class="2cfe-03e1-7737-a1db style1"
span lang="zh-cn"密码:/span/td
td
asp:TextBox ID="txtpwd" runat="server" TextMode="Password"/asp:TextBox
/td
/tr
tr
td colspan="2"
asp:Button ID="login" runat="server" Text="登陆" onclick="login_Click" /
/td
/tr
/table
/div
/form
/body
/html
.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class test11 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void login_Click(object sender, EventArgs e)
{
string str = "server=(local);database=数据库名;user id=用户名;Password=密码;Max Pool Size=5000;";
SqlConnection myConn=new SqlConnection(str);
string myLoingID = this.txtname.Text.Trim().ToString();
string myPass = this.txtpwd.Text.Trim().ToString();
if (myLoingID == "")
{
Response.Write("scriptalert('请输入账号!');history.back();/script");
this.txtname.Focus();
}
else if (myPass == "")
{
Response.Write("scriptalert('请输入密码!');history.back();/script");
this.txtpwd.Focus();
}
else if (myLoingID != "" myPass != "")
{
string Sqlstr = "select * from management where manageid =@loginname and managepwd=@loginpwd";
SqlDataAdapter sqldap = new SqlDataAdapter(Sqlstr, myConn);
sqldap.SelectCommand.Parameters.Add(new SqlParameter("@loginname", SqlDbType.Char, 10));
sqldap.SelectCommand.Parameters["@loginname"].Value = myLoingID;
sqldap.SelectCommand.Parameters.Add(new SqlParameter("@loginpwd", SqlDbType.VarChar, 80));
sqldap.SelectCommand.Parameters["@loginpwd"].Value = myPass;
DataSet ds = new DataSet();
sqldap.Fill(ds);
myConn.Close();
if (ds.Tables[0].Rows.Count 0)
{
Response.Write("scriptwindow.parent.location.replace('0000_index.aspx');/script");
}
else
{
Response.Write("scriptalert('用户名或密码错误!');history.back();/script");
}
}
}
}
登陆网站后台,怎么获得网站源码啊?
有的网站后台是单独写的,后台只能操作改变前台内容,无法获取网站源码的,你如果有网站ftp账号密码,是可以完全获取网站源码的。
如果网站后台是集成式的,比如cms,可以直接查看里面的代码获取的。
带背景的后台登录界面html源码怎么打
body{ background:url(图片相对路径) fixed;}
fixed会固定背景,如果不需要固定可以取消
怎么进去网页的后台?查看源代码?
找到后台管理的入口 ,输入管理员帐号和密码登陆,然后在网站设置或企业信息的地方修改电话号码,保存。再切换到前台页面,按一下F5刷新,就看到修改的效果了。ASP源码中心的后台都是这种傻瓜式操作的,不明白可以问网站上的客服。