How do I add a a dropdown menu in the default asp .net 3.1 razor template
By default, when you create a page in asp .net core 3.1 (in Visual Studio of course) you get a base menus in _layout.cshtml:
By default, when you create a page in asp .net core 3.1 (in Visual Studio of course) you get a base menus in _layout.cshtml:
So I have inheritied a program (APPLE) whose code baseline originated on another program (ORANGE). In order to make it easier for multiple teams to update this code we are moving the ‘common’ stuff out into a Shared Project (TREE). So far, we have made this work great with pulling out the Models and Controllers to a Shared library (obviously a few Models/Controllers remain in ORANGE as they are specific to that application).
I want to create a URL re-director in c#, so whenever my MVC application base url is hit with parameters i want to redirect it to other url based on parameters in the url (site, folder, file, id, etc)
Eg: http://localhost:8080/site/folder/file/id or http://localhost:8080/site/folder/file or http://localhost:8080/site/folder etc.
So request url can be of any type, only base url will be fixed.
I have Request.Params value as below
How can I add Data Annotation for Salutation?
A salutation must begin with Dear Sir or Madam, Mr, Mrs, Dr in lower or uppercase?
I have read a lot of answers on stackoverflow for similar problems but still cannot figure out what I am doing wrong.
I have made an ISignUp interface which is implemented by the SignUp class to create a new user. I am using Dependancy Injection (DI). The issue is that I cannot register this service. Instead of creating new users in the SignUpController directly, I rather prefer calling a helper class via the Interface it implements.
Good morning, I tell you, I am working on a shopping site with Bootstrap 4 as much as possible, which I want to show the products in this way, I leave an example: https://mdbootstrap.com/snippets/jquery/ascensus/135508
I have a begin form on a view that contains a file input, but when I try pass the input value to my controller action it returns a null value.
I’m learning asp.net core 3.1 with Razor pages. While watching tutorials on identity/authentication/authorization, a common example approach for user creation/registration form is to wrap some IsAdmin checkbox or user role selection dropdown box inside a @if(User.IsInRole(...)) block, to be bound and checked later in post handlers. This makes such that regular users can register as guests/customers etc, while admins can create other admin roles.