Strange indentation when using pre
In C# I fill a field with strings. Every string is ending with “rn”. Then I fill a website with this data using Razor:
In C# I fill a field with strings. Every string is ending with “rn”. Then I fill a website with this data using Razor:
Hi im making a reservation page in razor pages asp.net. On my page I have two drop downlist. One for the location other for the rooms of that specific location. I want to pass the value of that selected location to the function which shows the rooms (function is named showRoom()), so that the rooms will be shown depending on which location you selected. How do i do that with html? I tried something but didnt really work. Here is the html code
I get the following error in a .Net Framework project:
I am developing a Razor application and I need the Admin to assign or update roles of the Users. I am using a checkbox to carry out this action. So far, I have been able to populate the view to show the users and their respective roles ticked in the checkbox, but I haven’t been able to update their roles, as anytime a checkbox is ticked to add a role, it doesn’t add the role to the user. I think this line is the culprit: var selectedRoles = model.Where(x => x.Selected).Select(y => y.RoleName);.
Im trying to make an admin page where if i click on the button ‘send’, the message will be sent and there will popup a bootstrap alert on the employee page.
I have already the bootstrap alert setup, the message for the first time is shown. After I close and i send a message again i dont see any alert. I think it needs to be triggered when i click on the send button but im struggling about how to do that. Hope anyone can show me a simple way.
Here is the code for the admin page to send:
Considering the following data model:
I tried to make a database named PersonalJobManagement and it includes information of my employees.
I would like to code an ASP.NET MVC website to edit, delete or create new data for this database.
I have a .NET Core 3.1 ASP.Net project using razor views.
I want to add a button that triggers the action on the Controller inside the razor CSHTML for my ASP.NET project.
I have two dropdowns created using HTML helpers, however i am not entirely sure on where i could add additional attributes to these two helpers? More specifically, i want to add an “onblur” attribute that calls a javascript function, as follows: