- 博客(0)
- 资源 (21)
- 收藏
- 关注
Apache HTTP Server 与 Tomcat 的三种连接方式介绍
Apache HTTP Server 与 Tomcat 的三种连接方式介绍Apache HTTP Server 与 Tomcat 的三种连接方式介绍
2011-01-06
SQL Server三种导入导出数据方式比较
SQL Server三种导入导出数据方式比较
SQL Server三种导入导出数据方式比较(1) - ZDNet China - Where Technology Means Business
2009-11-18
在ASP.NET中将用户注册信息插入数据库
public int CreateUser(User user)
{
string SQL_QUERY=" Select * From [User] Where LoginName='"+user.LoginName+"'";
using(OleDbConnection conn = GetOleDbConnection())
{
OleDbCommand cmd = new OleDbCommand(SQL_QUERY, conn );
conn.Open();
using(IDataReader dr=cmd.ExecuteReader())
{
if(dr.Read())
{
return -1;
}
}
SQL_QUERY="INSERT INTO [User] ([LoginName],[Password],[GradeId],[Email],[Sex],[Birthday],[Country],[Province],[City],[TrueName],[Address],[ZipCode],[Phone],[OnlineTool],[Account],[RegisterTime],[LastLoginTime],[LastLoginIP],[LoginCount],[Question],[Answer],[State])Values('"+user.LoginName+"','"+user.Password+"',"+user.GradeId+",'"+user.Email+"',"+user.Sex+",'"+user.Birthday+"','"+user.Country+"','"+user.Province+"','"+user.City+"','"+user.TrueName+"','"+user.Address+"','"+user.ZipCode+"','"+user.Phone+"','"+user.OnlineTool+"',"+user.Account+",'"+user.RegisterTime+"','"+user.LastLoginTime+"','"+user.LastLoginIP+"',"+user.LoginCount+",'"+user.Question+"','"+user.Answer+"',"+user.State+")";
cmd.CommandText = SQL_QUERY;
if(cmd.ExecuteNonQuery()>0)
{
cmd.CommandText = "Select @@Identity";
return (int)cmd.ExecuteScalar(); //返回新增ID
}
else
{
return 0;//返回状态
2009-11-01
html如何与asp.net通讯
html如何与asp.net通讯呢
html页面1.html代码:
<!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>
<TITLE> 1.html </TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" />
<META NAME="Generator" CONTENT="EditPlus" />
<META NAME="Author" CONTENT="YingTo.Com" />
<META NAME="Keywords" CONTENT="" />
<META NAME="Description" CONTENT="" />
<META HTTP-EQUIV="imagetoolbar" CONTENT="NO">
<LINK HREF="http://wenwen.soso.com/z/css/style.css" REL="stylesheet" TYPE="text/css" />
</HEAD>
<BODY>
<FORM METHOD=POST ACTION="2.asp" target="_blank">
<TEXTAREA NAME="yingtobox" ROWS="5" COLS="50"></TEXTAREA>
</FORM>
</BODY>
</HTML>
2009-11-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人