I need to set the imageurl property for dynamic imagebutton array by reading images from sql server.

The Code for the imagebutton page is as follows:
imgbuttons2(counter).ImageUrl = FormatURL(myreader.Item(7))

Function FormatURL(ByVal strArgument) As String
Return ("tempurlbitmap.aspx") '?id=" & strArgument)
End Function

The code for tempurlbitmap.aspx is as follows
Dim strImageID As String = Request.QueryString("id")

myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
Do While (myDataReader.Read())
Response.ContentType = CStr(myDataReader.Item("imgtype"))

When i execute the first page, there is no image attached to the imagebutton.
Please Help