dataset questions

Results 1 to 2 of 2

Thread: dataset questions

  1. #1
    Join Date
    Dec 1969

    Default dataset questions

    Can anyone see what the proble is with eth code below. the error i am getting is Cannot apply indexing with [] to an expression of type &#039;System.Data.DataSet&#039;<BR><BR><BR>//Get City Discriptions<BR>DataSet ds = Cities.CityDis(IntCityID);<BR><BR>foreach (DataRow myDataRow in ds.Tables["Cities"].Rows)<BR>{<BR>string TourDis = ds["CityTourDis"].Tostring();<BR>tour_summary.Text = TourDis;<BR>}

  2. #2

    Default RE: dataset questions

    Maybe just need myDataRow["CityTourDis"] instead of ds["CityTourDis"] ? ;)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts