SHARE
TWEET

Untitled

Ortund Jul 9th, 2013 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // subcontractors for the job are saved as a test string in the database:
  2. // e.g. 1,2,3,4,5
  3.  
  4. string subcontractor = (string)dt.Rows[0]["subcontractors"];
  5. String[] subcontractors = subcontractor.Split(',');
  6.  
  7. for (int i = 0; i <= subcontractors.Count - 1; i++)
  8. {
  9.     // add the subcontractor name to the ListBox based on it's ID from the array
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top