fill the dataset emp by empcode if ds.tables(0).Rows.count>0
then
create table dynamically
_str_MainTag += "<TR class='AEHCuteLabel'><TD colspan=5 align=center >Eployee
Details</TD></TR>";
_str_MainTag += "<TR class='AEHTRHeading' width=4% id=tr_"+ Empcode+">
<TD width=10%>Select</TD>
<TD colspan=2 width=48%>" & ds.tabels(0).rows(0)("Name") & "</TD>
<TD colspan=2 width=48%>" & ds.tabels(0).rows(0)("designation") This is in vb u can convert to c#