@{ var imagePath= ""; if( Request["photoChoice"] != null){ imagePath = @"images\" + Request["photoChoice"]; } } Display Image on the Fly

Displaying an Image On the Fly

I want to see:  
@if(imagePath != ""){ Sample Image }