Hi,
Quote:
if (chkBx != null && chkBx.Checked)
{
do not check for null and checked at the same time. if the object is null, you will get Null Reference exception. SO, try to check one condition at a time.
Quote:
lblEmail = grid1.Rows[0].Cells[3].Text.ToString();
every time you are assigning text to same object. if "lblEmail" is label then how can you assign text to label object.
use
lblEmail.Text = grid1.Rows[0].Cells[3].Text.ToString();
so, on every iteration you are assigning to same label/object. how can you differentiate with others. so append the text like below.
lblEmail.Text += " ; " + grid1.Rows[0].Cells[3].Text.ToString();
hope it helps.