資源簡介
非常簡單的工資查詢系統,簡單到只有登錄和查詢功能
登陸身份證號:410235197812210317
密碼:123456
提示:修改 sqlhelper.cs中的數據庫連接串后 即可使用
例如:
string ConStr = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Administrator\Downloads\好例子網_WebSite5\WebSite5\gzcx.accdb;Persist Security Info=False";
代碼片段和文件信息
using?System;
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?AccessLianjie;
using?System.Data.OleDb;
public?partial?class?_Default?:?System.Web.UI.Page?
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????}
????protected?void?Button1_Click(object?sender?EventArgs?e)
????{
?????string?yanzheng=TextBox1.Text.ToString();
????????int?changdu=yanzheng.Length;
????????string?SqlStr1?=?“select?*?from?[user]?where?身份證號碼=‘“?+?TextBox1.Text?+?“‘?and??密碼=‘“?+?TextBox2.Text?+?“‘“;
????????string?SqlStr2?=?“select?*?from?[tb_gz]?where?身份
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-01?06:10??.vs\
?????目錄???????????0??2018-08-01?06:10??.vs\WebSite5\
?????目錄???????????0??2018-08-01?06:10??.vs\WebSite5\v15\
?????文件???????33792??2018-08-01?06:10??.vs\WebSite5\v15\.suo
?????目錄???????????0??2018-08-01?05:59??App_Code\
?????文件????????1733??2018-08-01?05:59??App_Code\sqlhelper.cs
?????目錄???????????0??2018-08-01?06:11??App_Data\
?????文件????????1086??2018-08-01?06:01??Default.aspx
?????文件????????1732??2016-12-30?11:35??Default.aspx.cs
?????文件????????1849??2018-08-01?06:10??WebSite5.sln
?????文件??????843776??2018-08-01?06:00??gzcx.accdb
?????文件?????????582??2016-12-30?11:40??printxinxi.aspx
?????文件?????????825??2016-12-30?11:44??printxinxi.aspx.cs
?????文件????????8324??2018-08-01?05:59??web.config
評論
共有 條評論