Source Page <SPAN class = 'wp _ keywordlink '> Code </span>:. aspx <br/> background code: <br/> IMG. imageurl = "B. aspx? Imgid = "+ 1; <br/> display image page B. aspx <br/> background code: <br/> Object S = request. querystring ["imgid"]; //; <br/> If (s! = NULL) <br/>{< br/> string connectionstring = configurationsettings. appsettings ["sqlconnectionstr"]; <br/> using (sqlconnection myconnection = new sqlconnection (connectionstring )) <br/>{< br/> sqlcommand mycommand = new sqlcommand ("select drawing from dat_item_master where item_uid =" + S. tostring (), myconnection); <br/> try <br/>{< br/> myconnection. open (); <br/> sqldatareader mydatareader; <br/> mydatareader = mycommand. executereader (); <br/> If (mydatareader. read () <br/>{< br/> If (mydatareader ["Drawing"] Is dbnull) <br/> return; <br/> response. clear (); <br/> response. contenttype = "application/octet-stream"; <br/> response. binarywrite (byte []) mydatareader ["Drawing"]); <br/>}< br/> catch (sqlexception sqlexc) <br/> {<br/> response. write (sqlexc. tostring (); <br/>}< br/>}