I Have a month selector to choose the month of some some bills, but I want to create auxiliar button to easy navigation to +1 and -1 month. When I do any kind of Post to my server side page, my DateTime is Reset to default value (01-01-0001) and I lost all track of the value, is there a correct
Tag: razor-pages
Change innerHtml of div according to value of model item in view .NET6 EF6 Razor Pages No MVC
Change innerHtml of div according to value of model item in view .NET6 EF6 Razor Pages No MVC I am trying to have a due date optional in a todo list. Since date fields are not nullable/required, I set the default due date to 09/09/9999. That date represents a todo that does not have a due date. What I want
Submit button not consistently firing
I have an asp.net core razor form with a submit button. When the user clicks ‘Update’, the form calls a JavaScript function to prompt the user if they are sure they want to complete the request. This functionality has been working, but starting last week, the form will occasionally not save despite the user confirming that they want to complete
Is there any way to get full path of file in form?
I am trying to get file by input element of type “file”. That element is in partial view and I want to send it to controller or request it there by “Request.Form[“inputFile”];”. This way give me only name of the file. In the controller i want to send it via email attachment but I need to load that file. Aplication
Access Messages from Message Center
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. View model MessageViewModel.cs Controller Cshtml Answer To display top 5 records, we should use the “OrderByDescending()” to sort the message, and
How upload image in CKEditor 5 With asp.net core razor Pages
I Have A Razor Page Ineed this Page UPload image to server by CKEditor give me a sample Answer How upload image in CKEditor 5 With asp.net core razor Pages You can refer to the following example to achieve above requirement. JS code Page model class and handler Test Result