本文介绍了如何在我的Aspx页面中使用Stringwriter而不是使用Response.Write的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我正在尝试通过
将数据表值显示为pdf文件
Response.Write(")
,但我想尝试另一种比stringer bcoz更快的字符串,它比reponse.write
在此先感谢
velsamy A
Hi Friends,
I am trying to display the datatable values as a pdf file through
Response.Write("")
, but i want to try another one that is stringwriter bcoz its faster than reponse.write
thanks in advance
velsamy A
推荐答案
Dim myResponse As New StringBuilder()
Using sw As New StringWriter(myResponse)
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
sw.Write("...")
Response.Write(myResponse.ToString())
End Using
这篇关于如何在我的Aspx页面中使用Stringwriter而不是使用Response.Write的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!