Author: alxrian | Posted on: 10/29/2009 2:11:39 PM | Views : 1122

Dear Forum,
Is there anybody that can help me with a reduced way to assign a property value to an asp control that is being used several times on a web page. I have a 3 Panels and upon a certain querystring value, i have to make visible and assign a backimageurl as show bellow, any ideas as how implement a simpler , shorter code for this? Thks a lot in advanced. I will make sure I will give the credits to the answer, as I always do.
Current:
Protected Sub form1_Load()...
Select Case Cint(Request.Querystring("id1"))
Case 1
Panel1.visible = True
Panel1.BackImageURL="~/image.png"
Case 2
Panel2.visible = True
Panel2.BackImageURL="~/image.png&q ...

Go to the complete details ...