Advertisement
Ortund

Untitled

Jul 9th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement