Your Ad Here

Posted By

krisdb on 04/10/08


Tagged

c-sharp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

uprise78
umang_nine


Populate data


 / Published in: C#
 

  1. DataTable dtData = DataSelection.ReturnDataTable("sp_StoredProc");
  2.  
  3. if (dtData.Rows.Count > 0)
  4. {
  5. txtFormField.Text = dtData.Rows[0]["Column"].ToString();
  6. }
  7.  
  8. foreach (DataRow dr in dtData.Rows)
  9. {
  10. txtFormField.Text = dr["Column"].ToString();
  11. }

Report this snippet  

You need to login to post a comment.