Image preview (Display) in asp.net:
-> Open the vs2010
->Create new website and give name click "ok" button.
->Right click on solution explorer form the right side of vs add a new page give name click on "ok" button.
->See the below screen shot and Design the page.
-> Right click on solution explorer add a Handler.ashx give name as Imagehandler,ashx.
-> open Imagehandler,ashx write the code according below shown screen shot.
-> Click on the Preview button from imagedisplay.aspx page.
->write the code on imagedisplay.aspx.cs according below shown screen shot
->Run the Visual Studio using Ctrl + f5.
-> choose a file from the file upload control and click on the preview button you will be get image preview.
-> Open the vs2010
->Create new website and give name click "ok" button.
->Right click on solution explorer form the right side of vs add a new page give name click on "ok" button.
->See the below screen shot and Design the page.
-> Right click on solution explorer add a Handler.ashx give name as Imagehandler,ashx.
-> open Imagehandler,ashx write the code according below shown screen shot.
-> Click on the Preview button from imagedisplay.aspx page.
->write the code on imagedisplay.aspx.cs according below shown screen shot
->Run the Visual Studio using Ctrl + f5.
-> choose a file from the file upload control and click on the preview button you will be get image preview.
No comments:
Post a Comment