문제

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!

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top