questo è il div testata... i vari controlli aspx li valorizzo da codebehind
Vorrei poter prendere il codice html del div e metterlo nel testo di una mail come riepilogo di un ordine ... poi infatti ho da aggiungere anche un div contenente il dettaglio dell'ordine: quello contiene un repeater ed è pure più articolato... se non riesco con la testata mi sa che son fregato e mi tocca scrivermi il codice html della mail a mano... non posso farcelacodice:<div id="testata" runat="server" style="background-color: #FFF; border-radius: 15px; padding: 20px 20px 1px 20px;"> <table class="table" style="width: 100%; background-color: #FFF;"> <tr> <td style="width: 15%;"><b>Cliente</b></td> <td style="width: 35%;"> <asp:Label ID="r_cliente" runat="server" Text=""></asp:Label> <asp:HiddenField ID="hidordine" runat="server" Value="0" /> <asp:HiddenField ID="mailcliente" runat="server" Value="" /> </td> <td style="width: 15%;"><b>Destinazione merce</b></td> <td style="width: 35%;"> <asp:Label ID="r_destinazione" runat="server" Text=""></asp:Label></td> </tr> <tr> <td><b>Cond. di pagamento</b></td> <td> <asp:Label ID="r_pag" runat="server" Text=""></asp:Label> </td> <td><b>Consegna</b> (indicativa)</td> <td> <asp:Label ID="r_cons" runat="server" Text=""></asp:Label></td> </tr> <tr> <td><b>Relativo al brand:</b><br /> <b>Collezione:</b><br /> <b>Note:</b> </td> <td colspan="3"> <asp:Label ID="r_summary" runat="server" Text=""></asp:Label></td> </tr> </table> </div>