Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Thanks & Regards; aaa
<body> <form id="form1" runat="server"> <div> <table id="tbl1" runat="server"> <tr> <td>one</td> <td>two</td> <td>three</td> </tr> <tr> <td>four</td> <td>five</td> <td>six</td> </tr> </table> </div> <asp:Label ID="lbl1" runat="server" /> </form> </body>
protected void Page_Load(object sender, EventArgs e) { var str= tbl1.Rows[0].Cells[2].InnerHtml; lbl1.Text = str.ToString(); }
protected void Page_Load(object sender, EventArgs e) { string str; for (int i = 0; i < tbl1.Rows.Count; i++) { for (int j = 0; j < tbl1.Rows[i].Cells.Count; j++) { str = tbl1.Rows[i].Cells[j].InnerHtml; lbl1.Text = lbl1.Text + " " + str; } } }
Nitha Deepak
lbltext.Text = @"<table id='tbl1' runat='server'> <tr> <td>one</td> <td>two</td> <td>three</td> </tr> <tr> <td>four</td> <td>five</td> <td>six</td> </tr> </table>";
MailMessage message = new MailMessage(); message.From = new MailAddress("sender@foo.bar.com"); message.To.Add(new MailAddress("recipient3@foo.bar.com")); message.CC.Add(new MailAddress("carboncopy@foo.bar.com")); message.Subject = "This is my subject"; message.IsBodyHtml = true; message.Body = "<table id=\"tbl1\" runat=\"server\"><tr><td>one</td><td>two</td><td>three</td></tr><tr><td>four</td><td>five</td><td>six</td></tr></table>"; SmtpClient client = new SmtpClient(); client.Host ="IP address of the host used for SMTP transactions"; client.Port = 25; client.Send(message);
Regards, Susan
Login to post response