i got error:
while (objDataReader.Read()){db_pageID = objDataReader["id"];}//end while
Try:db_pageID = Convert.ToInt32(objDataReader["id"]);
(int)objDataReader["id"];orint.Parse(objDataReader["id"].ToString());
Might need to check for a null value first.
if(objDataReader["id"] != System.DbNull.Value)db_pageID = (int)objDataReader["id"];elsedb_pageID = -1;
ids = ids + Convert.ToString(ds.Tables[0].Rows[i].ItemArray["id"]) + ",";cannot convert string to int