public void no() { SqlCommand cmd = new SqlCommand("select qno from QUIZ1 where applicationname = @appname", con); cmd.Parameters.AddWithValue("@appname", this.application); con.Open(); ArrayList al = new ArrayList(); SqlDataReader sdr = cmd.ExecuteReader(); while (sdr.Read()) { object[] values = new object[sdr.FieldCount]; sdr.GetValues(values); al.Add(values); } this.str = ((int[])al.ToArray(typeof(int))); }
ArrayList
DataType
Integer
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)