Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

cannot find column 1

$
0
0

hey 

i have one lgoin form for two users

whe i create a function it gives me error 

public int Loginuser1(string UserName, string Password)
        {
            // return the values if Admin then 1 else 2 for User
           int a = Convert.ToInt32( db.ExecuteDataSet("splogin3", new object[] { UserName, Password }).Tables[0].Rows[0][1].ToString());

           return a;

error: cannot find column 1 

how i solve this


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>