Jump to content

how to dispaly arraylist values


raviprakashg

Recommended Posts

hi friends,i got strucked somthing displaying values in arraylist into .aspx pages, i don't its possible or not.in general how to display datas from array?i have the code and i dont know what to do after that, and intention is to use the arraylist in .aspx pageif there any other way pls help me.HERE IS MY CODE:string sqlGetrecords = "SELECT * FROM employeeInfo"; SqlCommand mySqlCommand = new SqlCommand(sqlGetrecords,mydb.myDBConn); SqlDataReader myreader; myreader = mySqlCommand.ExecuteReader(); while ( myreader.Read() ) { object[] values = new object[myreader.FieldCount]; myreader.GetValues(values); Myarrylist.Add(values); } MSG.Text = Myarrylist.Count.ToString();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...