asp.netÁ¬½ÓmysqlÔõôдµÇ¼´úÂë
asp.netÁ¬½ÓmysqlÔõôдµÇ¼´úÂë
¹Ø¼üÊǰѵǼ´úÂëдÔÚ ÀàÖÐ
È»ºóǰ̨µÇ¼´úÂë¾ÍÖ»Óþ͵÷ÓÃÕâ¸ö ÀàC# code:
using System;//Õâ¸öÀàÖÐÒªÊÇÓдíÇëÖ¸³öÀ´£¬Ð»Ð»
using System.Data;
using System.Configuration;
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.Configuration;
using MySql.Data.MySqlClient;
/// <summary>
///UserInfo µÄժҪ˵Ã÷
/// </summary>
public class UserInfo
{
public string user_name;
public string password;
public string str = System.Configuration.ConfigurationManager.AppSettings["strconn"];
MySqlConnection conn = new MySqlConnection();
MySqlCommand cmd = new MySqlCommand();
public string User_Name
{
get
{
return user_name;
}
set
{
user_name = value;
}
}
public string Password
{
get
{
return password;
}
set
{
password = value;
}
}
public bool CheckLogin()
{
conn = new MySqlConnection(str);
string sql = "Select count(user_name) from bg_user where username=? and password =?";
Ïà¹ØÎÊ´ð£º
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
¾²Ì¬Ä£°å£º
<!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/ ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......