xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 7KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-09
  • 語(yǔ)言: C#
  • 標(biāo)簽:

資源簡(jiǎn)介

c#連接oracle實(shí)現(xiàn)用戶登錄以及密碼的修改,在寫(xiě)入數(shù)據(jù)庫(kù)

資源截圖

代碼片段和文件信息

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.Web.Configuration;
using?System.xml.Linq;
using?System.Data.OracleClient;

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?sql;
????????string?userName?=?TextBox1.Text;???????
????????string?password?=?TextBox2.Text;
????????Session[“name“]?=?TextBox1.Text;
????????Session[“pwd“]?=?TextBox2.Text;
????????string?conn=?“Data?Source=orcl;user=scott;password=tiger;“;
????????OracleConnection?connection?=?new?OracleConnection(conn);
????????sql?=?“select?count(*)??from?scott.password?where?name=‘“?+?userName?+?“‘?and?pwd=‘“?+?password?+?“‘“;
????????try
????????{
????????????connection.Open();
????????????OracleCommand?command?=?new?OracleCommand(sql?connection);
????????????Int32?num?=?Convert.ToInt32(command.ExecuteScalar());
????????????if?(num?>?0)
????????????{
????????????????Response.Redirect(“Default2.aspx“);
????????????}
????????????else
????????????{
????????????????Label5.Text?=?“用戶名或密碼錯(cuò)誤,請(qǐng)重新輸入!“;
????????????}
????????}
????????catch?(Exception?ex)
????????{
????????????Label5.Text?=?“數(shù)據(jù)庫(kù)連接錯(cuò)誤!“;
????????}
????????finally
????????{
????????????connection.Close();
????????}
????}
????
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-10-20?14:28??resetpwd\
?????目錄???????????0??2011-10-19?19:57??resetpwd\App_Data\
?????文件????????5265??2011-10-19?20:26??resetpwd\Default.aspx
?????文件????????1650??2011-10-20?14:28??resetpwd\Default.aspx.cs
?????文件?????????644??2011-10-19?20:26??resetpwd\Default2.aspx
?????文件?????????578??2011-10-19?19:57??resetpwd\Default2.aspx.cs
?????文件????????4808??2011-10-19?20:34??resetpwd\Default3.aspx
?????文件????????1759??2011-10-19?21:38??resetpwd\Default3.aspx.cs
?????文件????????8230??2011-10-19?20:23??resetpwd\web.config

評(píng)論

共有 條評(píng)論

相關(guān)資源