摘要
从数据库读取图片到apsx页,人们通常先将图像写到另一个临时aspx页,然后设置Image控件的ImageURI指向它,中间需要将参数传递到绘出图像的页。本文介绍另外一种不需传递参数的方法,并使用压力测试工具对两种方法进行了比较。实验结果表明本文介绍的方法的某些性能更优。
To display a picture from database on an aspx page, the most often used method is firstly writing the picture on a temporary photo page and then set the ImageURI property of an Image control to refer to the photo page. In this way, parameters such as the ID of the picture are needed to be passed to the photo page. In this paper, a new method which does not pass parameters is proposed, and also the comparison is made between the two methods using a stress test tool. Result of the experiment shows that our new method performs better.
出处
《软件》
2011年第8期13-14,共2页
Software
基金
毕节学院科学研究基金重点项目(20092007)