commit
548be71b6e
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
|
||||
IIS configuration sections.
|
||||
|
||||
For schema documentation, see
|
||||
%IIS_BIN%\config\schema\IIS_schema.xml.
|
||||
|
||||
Please make a backup of this file before making any changes to it.
|
||||
|
||||
NOTE: The following environment variables are available to be used
|
||||
within this file and are understood by the IIS Express.
|
||||
|
||||
%IIS_USER_HOME% - The IIS Express home directory for the user
|
||||
%IIS_SITES_HOME% - The default home directory for sites
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Data.SqlClient;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
|
||||
/// <summary>
|
||||
///DBClass 的摘要说明
|
||||
/// </summary>
|
||||
public class DBClass
|
||||
{
|
||||
public SqlConnection conn;
|
||||
public DBClass()
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>选择留言板</title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<img alt="" src="images/groups.png" style="width: 16px; height: 16px" />
|
||||
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Label1.Text = "<a href='login.aspx'>登录</a>";
|
||||
Label2.Text = "<a href='register.aspx'>注册</a>";
|
||||
Label3.Text = "<a href='admin/login.aspx'>管理员登录</a>";
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gbook.aspx.cs" Inherits="Gbook" %>
|
||||
<%@ Register src="control/GbookList.ascx" tagname="GbookList" tagprefix="uc1" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>留言板</title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<img alt="" src="images/groups.png" style="width: 16px; height: 16px" />
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class Gbook : System.Web.UI.Page
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Session["username"] == null || Session["userid"] == null)
|
||||
{
|
||||
Panel1.Visible = false;
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
有关如何配置 ASP.NET 应用程序的详细信息,请访问
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
The following attributes can be set on the <httpRuntime> tag.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.8" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gbook.aspx.cs" Inherits="admin_Gbook" %>
|
||||
<%@ Register src="GbookList.ascx" tagname="GbookList" tagprefix="uc1" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>留言板</title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<img alt="" src="../images/groups.png" style="width: 16px; height: 16px" />
|
||||
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_Gbook : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Label1.Text = "<a href='" + "usermanage.aspx'>" + "用户管理</a>";
|
||||
Label2.Text = "<a href='" + "../logout.aspx'>" + "注销</a>";
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GbookList.ascx.cs" Inherits="admin_GbookList" %>
|
||||
<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
<asp:DataList ID="DataList1" runat="server" DataKeyField="id" Width="100%" >
|
||||
<ItemTemplate>
|
||||
<table class="g_table">
|
||||
<tr>
|
||||
<td><div class="g_title">
|
||||
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>'
|
||||
style="font-weight: 700" />
|
||||
于<asp:Label ID="timeLabel" runat="server" Text='<%# Eval("time") %>' />
|
||||
进行留言: <span style="font-size:12px"><a href="reply.aspx?cid=<%# Eval("classid") %>&id=<%# Eval("id") %>">回复</a> <a href="delete.aspx?cid=<%# Eval("classid") %>&id=<%# Eval("id") %>">删除</a></span></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div class="g_content">
|
||||
<asp:Label ID="contentLabel" runat="server" Text='<%# Eval("contents") %>' />
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
|
||||
public partial class admin_GbookList : System.Web.UI.UserControl
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.Label3.Text = "1";
|
||||
bind();
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="admin_delete" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_delete : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
string strsql = "delete from gbook where id='" + Request.QueryString["id"] + "'";
|
||||
db1.ExecuteSql(strsql);
|
||||
Response.Redirect("Gbook.aspx?cid=" + Request.QueryString["cid"] + "");
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="admin_login" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>登录界面</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div style="text-align: center; position: absolute; width: 100%; height: 100%;background:url(../images/bg1.jpg);background-repeat:no-repeat;background-size:cover">
|
||||
<table style="width: 100%;height : 450px;">
|
||||
<tr>
|
||||
<td colspan="3">
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
|
||||
public partial class admin_login : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reply.aspx.cs" Inherits="admin_reply" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(../images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main">
|
||||
回复留言:<br />
|
||||
<asp:TextBox ID="TextBox1" runat="server" Height="150px" TextMode="MultiLine"
|
||||
Width="100%"></asp:TextBox>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_reply : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="usermanage.aspx.cs" Inherits="admin_usermanage" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<img alt="" src="../images/groups.png" style="width: 16px; height: 16px" />
|
||||
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_usermanage : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Label1.Text = "<a href='" + "Gbook.aspx'>" + "留言管理</a>";
|
||||
Label2.Text = "<a href='" + "../logout.aspx'>" + "注销</a>";
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GbookList.ascx.cs" Inherits="control_GbookList" %>
|
||||
<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
<asp:DataList ID="DataList1" runat="server" DataKeyField="id" Width="100%" >
|
||||
<ItemTemplate>
|
||||
<table class="g_table">
|
||||
<tr>
|
||||
<td><div class="g_title">
|
||||
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>'
|
||||
style="font-weight: 700" />
|
||||
于<asp:Label ID="timeLabel" runat="server" Text='<%# Eval("time") %>' />
|
||||
进行留言: </div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div class="g_content">
|
||||
<asp:Label ID="contentLabel" runat="server" Text='<%# Eval("contents") %>' />
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
|
||||
public partial class control_GbookList : System.Web.UI.UserControl
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.Label3.Text = "1";
|
||||
bind();
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
body {
|
||||
font-size: 12px;
|
||||
font-family: Geneva, Arial, Helvetica, sans-serif;
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.admin_login {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url(images/bg1.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>登录界面</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div style="text-align: center; position: absolute; width: 100%; height: 100%;background:url(images/bg1.jpg);background-repeat:no-repeat;background-size:cover">
|
||||
<table style="width: 100%;height : 450px;">
|
||||
<tr>
|
||||
<td colspan="3">
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
public partial class login : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
string strsql = "select * from register where username='" + TextBox1.Text + "' and password='" + TextBox2.Text + "'";
|
||||
DataTable dt = db1.GetRecords(strsql);
|
||||
if (dt != null && dt.Rows.Count == 1) //登录成功
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="logout.aspx.cs" Inherits="logout" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class logout : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Session["username"] = null; //清除用户信息
|
||||
Session["userid"] = null; //清除用户信息
|
||||
Session["admin"] = null; //清除管理员信息
|
||||
Response.Redirect("Default.aspx"); //页面跳转
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="modi.aspx.cs" Inherits="modi" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.auto-style1 {
|
||||
height: 19px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
public partial class modi : System.Web.UI.Page
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
string uid = Request.QueryString["uid"]; //获取传递的参数
|
||||
string strsql = "select * from register where id=" + uid; //编写查询语句
|
||||
DataTable dt = db1.GetRecords(strsql); //获取查询结果
|
||||
Label1.Text = dt.Rows[0]["username"].ToString(); //填充用户名
|
||||
TextBox1.Text = dt.Rows[0]["password"].ToString(); //填充密码
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net472" />
|
||||
</packages>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.CodeDom.Providers.DotNetCompilerPlatform</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider">
|
||||
<summary>
|
||||
Provides access to instances of the .NET Compiler Platform C# code generator and code compiler.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider.#ctor">
|
||||
<summary>
|
||||
Default Constructor
|
||||
</summary>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
|
||||
<configuration>
|
||||
<runtime>
|
||||
<gcServer enabled="true"/>
|
||||
<gcConcurrent enabled="false"/>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis.CSharp" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
|
||||
<configuration>
|
||||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
<gcConcurrent enabled="false"/>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis.CSharp" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
|
||||
<configuration>
|
||||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
<gcConcurrent enabled="false"/>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis.CSharp" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
<gcConcurrent enabled="false" />
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.9.0.0" newVersion="2.9.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
<gcConcurrent enabled="false" />
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.9.0.0" newVersion="2.9.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.9.0.0" newVersion="2.9.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
<gcConcurrent enabled="false" />
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.9.0.0" newVersion="2.9.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="personal.aspx.cs" Inherits="personal" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
|
||||
<asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
public partial class personal : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Label9.Text = "你好" + Session["username"];
|
||||
Label10.Text = "<a href='" + "Gbook.aspx?uid=" + Request.QueryString["uid"] + "'>留言</a>";
|
||||
Label11.Text = "<a href='" + "logout.aspx'>" + "注销</a>";
|
||||
DBClass db1 = new DBClass();
|
||||
if (!String.IsNullOrEmpty(Request.QueryString["uid"])) //获取传递的uid
|
||||
{
|
||||
string uid = Request.QueryString["uid"]; //参数值获取
|
||||
string strsql = "select * from register where id=" + uid;//编写查询语句
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>注册界面</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div style="width:100%;margin-top:10px;text-align:center">
|
||||
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
</asp:ScriptManager>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
public partial class register : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
try
|
||||
{
|
||||
string check = "select * from register where username='" + TextBox1.Text + "'";
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="seebook.aspx.cs" Inherits="seebook" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="background:white url(images/bg.png) repeat-x;">
|
||||
<form id="form1" runat="server">
|
||||
<div class="gbook_main_title"></div>
|
||||
<div class="gbook_banner">
|
||||
<img alt="" src="images/groups.png" style="width: 16px; height: 16px" />
|
||||
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
|
||||
public partial class seebook : System.Web.UI.Page
|
||||
{
|
||||
DBClass db1 = new DBClass();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.Label3.Text = "1";
|
||||
bind();
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>注册界面</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div style="width:100%;margin-top:10px;text-align:center">
|
||||
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
</asp:ScriptManager>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class test : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
Loading…
Reference in new issue