Frage

The anchor is not working in this case, why?:

    public void TabsCliente() {

        ulCliente.Items.Add(new ListItem(Resources.Titulos.tlCadastroCliente, "#tabCadastrarCliente"));

    }


<ul id="ulCliente">
<li><a href="../Controles/#tabCadastrarCliente">Cadastrar Cliente</a></li>

it should look like:

<ul id="ulCliente">
<li><a href="#tabCadastrarCliente">Cadastrar Cliente</a></li>

Help me! Thank!

War es hilfreich?

Lösung

In your C# code, change "#tabCadastrarCliente" to "/#tabCadastrarCliente".

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top