How use symbol sharp (#) with BulletList Value inside folder? [closed]

StackOverflow https://stackoverflow.com/questions/21763519

  •  11-10-2022
  •  | 
  •  

Вопрос

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