Stop .cshtml rendering on post
Say I had this page in ASP.NET RazorPages:
Say I had this page in ASP.NET RazorPages:
i have a login page with Username and Password inputs and also a submit button. I want to call a method in my Controller that checks if the data matches and shows the result. how do i call that method? I tried the following but it didnt work it passes those as parameters
I’m having issues with razor, I’m trying to access the first element of a list. But when I try to cast an element with item2.hijos[0].ruta, I get an error.
I have a problem in EditUserProfile in razor page, so there is no problem showing the user information in the page, but when I press edit button, I get user information through the form but I can’t save or user it.
Hi I’m try to display the top 5 messages from the message center on the homepage. But I’m not sure what I’m doing wrong. I try to get the messages from the message view model here is my code.
I have tried following examples that look fairly simple for getting the id of a primary key after inserting a new record for use in other tables that need to use it as a foreign key, but despite following these examples to the letter I am still getting a null reference exception for the id.
Imagine a razor page with a Form that have many inputs that user fills them.
I have an Image folder with some files, and a table with the path of this images. When trying to list the images like this:
I have been trying to call my function in the ‘onsubmit’ part of my form however, whenever I execute my application the alert is not appearing when searching an empty string.
How upload image in CKEditor 5 With asp.net core razor Pages