Tuesday, April 5, 2011

ASP change dataset in string and response.write() on browser



Recently, I got a requirement to enhance asp page functionality and improve the performance, Here is a sample code to convert dataset into string - response browser for the debug purpose.
Dim sw As New StringWriter()
dt.DataSet.WriteXml(sw, XmlWriteMode.WriteSchema)
Dim s As String = sw.ToString()
Response.Write("")
Response.Write(s)


1 comment: