Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/04/2008, 13:36
Avatar de Fann_Lavigne
Fann_Lavigne
 
Fecha de Ingreso: diciembre-2004
Mensajes: 622
Antigüedad: 20 años, 1 mes
Puntos: 12
Re: href en dropdownlist

Ok me agrada tu idea, ke te parece si nos komplikamos un poko kon JavaScript.

Escribimoos la sig funcion JS:

Código:
<script type="text/javascript" language="javascript" >
function Go(obj)
            {
                location.href=obj.value;
            }
</script>
Y tu DropDown la invocaria asi:

Código:
<asp:DropDownList onChange="Go(this);" ID="DropDownList1" runat="server" Height="27px" Style="z-index: 103;
            left: 562px; position: absolute; top: 183px" Width="166px">
            <asp:ListItem Value="page1.aspx">Pagina 1</asp:ListItem>
            <asp:ListItem Value="page2.aspx">Pagina 2</asp:ListItem>
            <asp:ListItem Value="page3.aspx">Pagina 3</asp:ListItem>
        </asp:DropDownList>
Espero sea de tu agrado, funciona sin PostBack y pues, muy buena pregunta.
__________________
"Entre Mas Brillante Es Una Mente, Tiene Que Luchar Contra Demonios Internos Mas Poderosos"
[email protected]