求一个asp.net得登录验证的完整代码,包括数据库查询,急...在线等答案

来源:百度知道 编辑:UC知道 时间:2024/06/28 17:13:32
asp.net的后置代码,使用vb语言,查找数据库得到结果该如何比对

<script language=C# runat=server>
void CreatCode()
{
try
{
String code = GenerateCheckCode();
CreateCheckCodeImage(code);
}
catch (Exception ex)
{
println(ex.Message);
}
}
private string GenerateCheckCode()
{
char[] s = new char[] { '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };
string checkCode = "";

Random r = new Random();

for (int i = 0; i < 4; i++)<