Thread: Question Dynamic image load
View Single Post
  #2 (permalink)  
Old 07-22-2009, 12:49 PM
majicmonk majicmonk is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 32
Posts: 5
Reputation: 0
majicmonk is on a distinguished programming path ahead
Default

You should assign the image in the code behind file like:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Request.QueryString("YourParameterName") IsNot Nothing Then
Image1.ImageUrl = Request.QueryString("YourParameterName")
Image1.Visible = True
Else
Image1.Visible = False
End If

End Sub

Last edited by majicmonk; 07-22-2009 at 1:56 PM.
Reply With Quote