i have a small html code in my asp.net page so now i want to preview the code in the same page and i want to send the sample html code to Constant Contract to save as a coustom Template please tell me how to preview the html data in asp.net page ...and After How can i save these html data as Coustom template in Constant Contract ..
if u required a my html code also will send u .. The code like bellow..
protected void btnPreview_Click(object sender, EventArgs e)
{
StringBuilder sbhtml = new StringBuilder();
string url = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath;
sbhtml.Append("<html>");
sbhtml.Append("<body>");
sbhtml.Append("<table border='0' cellpadding='5' cellspacing='0' width='100%' id='textEdit' bgcolor='#FFFFFF' style='margin-top: 6px; margin-bottom: 6px; background-color: #ffffff;'>");
sbhtml.Append("<tbody>");
sbhtml.Append("<tr>");
sbhtml.Append("<td align='left' style='font-size: 10pt; font-family: Georgia;color: #000000;'>");
sbhtml.Append("<table style='width: 805px;' cellpadding='0' cellspacing='0' align='center'>");
sbhtml.Append("<tr height='110'>");
sbhtml.Append("<td width='595px;' style='background-color: #000;'>");
sbhtml.Append("<img width='595px;' border='0' src='http://winelegend.com/newsletter/images/WL_NL_Header5.png' alt='' />");
sbhtml.Append("</td>");
sbhtml.Append("</tr>");
sbhtml.Append("</body>");
sbhtml.Append("</html>");
return sbhtml.ToString();
}
So Please Tell me how can preview these html code in asp.net and how to save into constant contract ..please expline me