Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Occuring error as : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

$
0
0
 

Am using this code to fetch Name, Username, Password from Database.

List<string> lst = new List<string>();
        lst = ctrl.retrive_email(email);
        foreach(string value in lst)    
        {
            name=string.Format("{0}",value);
            uname = string.Format("{1}", value);
            pwd = string.Format("{3}", value);
        }

But getting an Error as ::  Index (zero based) must be greater than or equal to zero and less than the size of the argument list.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



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