Code Behind Page Page /ImageDisplay.aspx.cs (C#)
Used by Page /ImageDisplay.aspx (C#)
1: using System;  
2: using QuizNetOnline.Logic;  
3: using Microsoft.ApplicationBlocks.Data;  
4:   
5: namespace QuiznetOnline.Web.UI  
6: {  
7:     public partial class ImageDisplay : BusinessClasses.BasePage  
8:     {  
9:         QuestionImage _questionImage;  
10:         protected override void Page_Load(object sender, EventArgs e)  
11:         {  
12:             if (!Page.IsPostBack)  
13:             {  
14:                 base.Page_Load(sender, e);  
15:   
16:                 _questionImage = new QuestionImage();  
17:                 _questionImage.Load(Convert.ToInt32(Request.QueryString["questionid"]), new SqlWrapper());  
18:   
19:                 Response.BinaryWrite(_questionImage.Image);  
20:             }  
21:         }  
22:     }  
23: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.