Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
lblIdentificationMark.Text = dtEmpData.Rows[0][Constant.MarkOf_Identification_V].ToString().Trim();
there is no error in my code.. but i get blank labels..
but this code working fine at my other web pages.
plss help
thanxxxxxxx
Posted
Updated 2-May-12 23:38pm
v2

Make sure this database contains some data for this table.
Also make sure dtEmpData contains valid data.
 
Share this answer
 
Check that your datatable contains data. This exception occures because data not found at given row position
 
Share this answer
 
Comments
vandna chopra 3-May-12 9:06am    
YA... MY DATABASE CONTANS DATA
vandna chopra 3-May-12 9:09am    
thanxxx
bt i already chked my database...
Try this code
lblIdentificationMark.Text = dtEmpData.Rows[0]["Constant.MarkOf_Identification_V"].ToString().Trim();

Columns name should be in the ("")and also check the dtWmpData have some record or not....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900