Can anyone tell me ,what is difference between Response.Output.Write(string sb)
and
An object of Html32TextWriter which calls write method output.Write(string sb2); .
ex :
StringBuilder SBOut = new StringBuilder();
StringWriter st=new StringWriter(SBOut);
Html32TextWriter output=new Html32TextWriter(st);
SBOut.Append(c1 + "<table>" + str);
SBOut.Append( c1 + "<tr>" + str);
SBOut.Append(c1+ "<td>" + str);
SBOut.Append(c1+ "Username: " + str);
SBOut.Append(c1+ "<input type='reset'/>" + str);
SBOut.Append(c1+ "</td>" + str);
SBOut.Append(c1+ "</tr>" + str);
SBOut.Append(c1+ "</table>" + str);
string sb2 = SBOut.ToString();
output.Write(sb2);
and why I am not getting the desirable Html output in web-browser while writting above code.