How to remove child controls inside Div

Satania

New Member
I've a application which send the email on a particular user action. In application there is a page with a Div element like below-\[code\] <div id="divResultados" runat="Server" visible="true"> <asp:TextBox ID="firstName" runat="server"></asp:TextBox> <asp:TextBox ID="lastName" runat="server"></asp:TextBox> <asp:Calendar ID="calDOB" runat="server"></asp:Calendar> <asp:Button ID="Button1" runat="server" OnClientClick="return Message()" onclick="Button1_Click" Text="Button" /> </div>\[/code\]While sending the email I extract the \[code\]InnerHtml\[/code\] text from the \[code\]Div\[/code\] element and set it in the email body. The program works fine except for one issue- the receiver got the email with calendar control in expandable mode. This behaviour is not acceptable to my client and calendar control should not export in the email body. Is there any work around?
 
Back
Top