开发者

How to render preview image of a website?

net app i want to list some websites with respective dynamically captured site 开发者_运维问答image.Show me some way with C#...


Update:

http://www.codeproject.com has an article and source code on a Webpage thumbnailer that will get you up and running.

You can easily modify the source to specify the size of viewport that you would like to capture with, and whether you want a screenshot or a full-height grab.


I think this is exactly what you are looking for :

http://www.aspdotnetcodes.com/Asp.Net_Dynamic_Thumbnail_Creation.aspx

Another one :

http://www.west-wind.com/weblog/posts/283.aspx


You can try appending the HTML response of the site to a Literal,

    string SiteHtml = new System.Net.WebClient().DownloadString("specify the url here");//Get response to a string
    ltrlSite.Text = SiteHtml; //Assign it to a literal

Check this link also.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜