About ASP.NET Core 6 MVC web application

40 views Asked by At

I need to add some CSS to the Register and Login buttons in [partial name="_LoginPartial"] tag in my ASP.NET Core 6 MVC web app project. How could I do that?

I have tried to make them (Register and Login) inline but that didn't work. I have tried to add ids and classes to the partial name tag and add css to them, and tried to add the following way by asking chatGPT

<a href="@Url.Action("_LoginPartial", "/identity/Account/Register")" class="btn btn-outline-primary float-right">Register</a>

<a href="@Url.Action("_LoginPartial", "Account")" class="btn btn-outline-success float-right">Login</a>

That didn't work either

0

There are 0 answers