Imports System.Data.SqlClient Public Class Ch10Proj2b Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. Private Sub InitializeComponent() End Sub Protected WithEvents MyCatList As System.Web.UI.WebControls.DataList Protected WithEvents homeImage As System.Web.UI.HtmlControls.HtmlImage Protected WithEvents imgCat As System.Web.UI.WebControls.Image Protected WithEvents IMG1 As System.Web.UI.HtmlControls.HtmlImage 'NOTE: The following placeholder declaration is required by the Web Form Designer. 'Do not delete or move it. Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not Page.IsPostBack Then ' Insert code here End If If Request.QueryString("CatID") = "" Then homeImage.Visible = True imgCat.Visible = False Else imgCat.Visible = True imgCat.ImageUrl = "images/CatPics/" & _ Request.QueryString("CatID") & ".jpg" homeImage.Visible = False End If End Sub End Class