hi there...
not to mess with all your code.. but I have this applied to an actual web site, you see the button of the current page in a diferent color...
just use something like this:
Code:
'private array that holds name of pages of at least part of them
Private PaginaResalte() As String = New String(6) {"principal.aspx", "quees.aspx", "acciones", "bases", "equipo", "Informes", "Noticia"}
'this is the load of the master page!
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim i As Int32
For i = 0 To PaginaResalte.GetLength(0) - 1
'try to find out if the page has something to do with the array...
If Request.Url.AbsolutePath.ToLower.Contains(PaginaResalte(i).ToLower) Then
Exit For
End If
Next i
'if not getting exit from another page not listed, just change the button to the highlighted one...
If i < PaginaResalte.GetLength(0) Then
Select Case i
Case 0
BtnHome.ImageUrl = "~/images/home2.jpg"
Case 1
BtnQueEs.ImageUrl = "~/images/que_es2.jpg"
Case 2
BtnAcciones.ImageUrl = "~/images/acciones2.jpg"
Case 3
BtnBases.ImageUrl = "~/images/bases2.jpg"
Case 4
BtnEquipo.ImageUrl = "~/images/equipo2.jpg"
Case 5
BtnInformes.ImageUrl = "~/images/informes2.jpg"
Case 6
BtnNoticias.ImageUrl = "~/images/noticias2.jpg"
End Select
End If
End Sub
all the buttons are originally on "off" state.. also you could write the javascript to roolover the buttons for all of them, and use two image controls , one with
js and other with nothing and when you highlited a button, use the image that don't have
js and put the
js button invisible...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========