raviprakashg Posted May 4, 2007 Share Posted May 4, 2007 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 More sharing options...
aspnetguy Posted May 4, 2007 Share Posted May 4, 2007 to view the data in the arraylist you could b\do something like this for(int i=0;i<Myarrylist.Count;i++){ MSG.Text += Myarrylist[i].ToString();} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.