All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
水晶报表的制作(图表)_[Asp.Net教程]
Asp.net中的mail的发送_[Asp.Net教程]
5种ASP.NET页面间传递参数实例代码_[Asp.Net教程]
第一篇:使用Visual,Studio,2008布局页面_[Asp.Net教程]
教你如何做好SQL Server的数据保护_[SQL Server教程]
基于PHP的AJAX技术实现文件异步上传_php资料_编程技术
GridView实用示例源码(可以导出Excel)_[Asp.Net教程]
查询同一表内多字段同时重复记录的SQL语句_[SQL Server教程]
优秀ASP.NET程序员修炼之路_[Asp.Net教程]
SQL数据库高级教程:学习 SQL BETWEEN_[SQL Server教程]
Reading number is top 10 pictures
29 the belle stars after bath figure1
到底是谁撞谁呀?
西游日记3
王艳写真温柔如水2
壮丽的云彩1
Exquisite decoration is not paying too much4
清扫五脏垃圾,我有绝招
NeedWallpaper5
小学生作文又现神作,你不得不佩服
沙漠里的美女
Download software ranking
Love the forty days
Unix video tutorial7
Tram sex maniac 2 (H) rar bag18
Eclipse-CALMSANNY (second edition)
Unix video tutorial17
Tram sex maniac 2 (H) rar bag14
Ashlynn Video2
Be there or be square
DreamWeaver8
在线棋牌游戏3.05版
delv published in(发表于) 2014/1/6 9:02:13 Edit(编辑)
ASP.NET一个最简单的会员登陆代码_[Asp.Net教程]

ASP.NET一个最简单的会员登陆代码_[Asp.Net教程]

ASP.NET一个最简单的会员登陆代码_[Asp.Net教程]























是用来新手入门的,高手们不要见笑呀!
string conn = "server=.;database=login;user id=sa;pwd=123";
SqlConnection cn = new SqlConnection(conn);
cn.Open();
string strsql = "select user_name,user_pwd from admin where user_name='" + TextBox1.Text + "' or user_pwd='" + TextBox2.Text + "'";
SqlCommand cmd = new SqlCommand(strsql, cn);
SqlDataReader rd = cmd.ExecuteReader();
if (rd.Read())
{
if (rd.GetValue(0).ToString() == TextBox1.Text)
{
if (rd.GetValue(1).ToString() == TextBox2.Text)
{
Response.Redirect("Default.aspx");
}
else
{
Response.Write("");
}
}
else
{
Response.Write("");
}
}
else
{
Response.Write("");
}
}




来源:网络












































添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.