<body> <form id="form1" runat="server"> <div> <textarea id="write" runat="server" cols="40" rows="6" readonly="readonly"></textarea> </div> <asp:Button ID="hi" Text="submit" runat="server" /> </form> </body>
Employee er = new Employee { FirstName="hi" , LastName="sunny"}; System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("<div class="\">"); sb.Append(" FirstName="+er.FirstName); sb.Append("<br />"); sb.Append(" LastName="+er.LastName); sb.Append("<a href="\">snowball</a>"); sb.Append("</div>"); write.InnerText = sb.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)