没有得到这个代码 [英] Not gettting this code

查看:89
本文介绍了没有得到这个代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天的问候,

我是asp.net的初学者我没有得到这个代码,请帮助我它基本上是logincode ..





  if (ds.Tables [   tbl_login]。Rows.Count ==  1 && ds.Tables [  tbl_login]。行[ 0 ] [ 0 ]。ToString()==   1
{
Label17.Text = 用户名不可用。 ;
Label17.BackColor = System.Drawing.Color.Red;
TextBox9.Focus();
}
else
{
Label17.Text = 用户名可用。;
Label17.BackColor = System.Drawing.Color.Green;
TextBox10.Focus();
}



请帮助我..

问候

解决方案

它所做的只是检查返回的数据是否包含单行,并且该行的第一个单元格包含特定值。

如果是,则用户名存在,如果不存在它没有。



这不是登录代码,它最有可能是注册码 - 而且它的确切工作原理将取决于填充DataSet和DataTable的查询(s )。

Greetings for the day,
I am beginner of asp.net i am not getting this code kindly help me it is basically logincode..


if (ds.Tables["tbl_login"].Rows.Count == 1 && ds.Tables["tbl_login"].Rows[0][0].ToString() == "1")
        {
            Label17.Text = "Username is not Available.";
            Label17.BackColor = System.Drawing.Color.Red;
            TextBox9.Focus();
        }
        else
        {
            Label17.Text = "Username is Available.";
            Label17.BackColor = System.Drawing.Color.Green;
            TextBox10.Focus();
        }


kindly help me..
Regards

解决方案

All it does is check if the returned data consists of a single row, and that the first cell of that row contain a specific value.
If it does, the username exists, if it doesn't it doesn't.

It's not login code, it's registration code most likely - and exactly how it works will depend on the query which filled the DataSet and DataTable(s).


这篇关于没有得到这个代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆