To Mr. OriginalGriff
Thanks for your comment about my "HOME WORK". for your kind information its not my home work. and thanks to you for not solving my problem. I did it myself.
any way solved program for all others who need it.
int Cr = 0;
private void pNode(string node)
{
string sql = "select * from biodata_master where parent_no='" + node + "'";
DataTable dt = new DataTable();
dt = obj.SelectData(sql);
if (dt.Rows.Count == 1)
{
Cr = Cr + 1;
}
else if (dt.Rows.Count > 0)
{
Cr = Cr + 2;
pNode(dt.Select("PLACEMENT='Left'")[0].ItemArray[0].ToString());
pNode(dt.Select("PLACEMENT='Right'")[0].ItemArray[0].ToString());
}
}
and please its my humble request to the people like you(Extreme Professionals) please do not demoralize the novices like me by saying these kind of words. Please don't take my word badly.
Thanking you.