I’m using .net core 6 and I have a table that has pagination and if the table page changes, it refreshes the page I want to change the table page without refresh using partialview and Ajax controller: userService: View: Can you tell me how to do this? Thankyou Answer Could you show your codes about partialview ? the script could
Tag: asp.net-core
id values turns always same from foreach in mvc view page
I am using mvc .net core for a project and I have a view page. I need some id values from this page for using them inside partial view. Because I am using those id values for foreign key in another table to post. From main page these values posts in database correctly. I always post 5 values and always
ASP.Net Core app/JS validation: prompt user to update form, or exit page
I have an ASP.Net Core/Razor app with a simple form: I’m using the built-in client-side validation for things like <input …required> or <input type=”number” min=”0″ …> (Microsoft includes jQuery validation in their MSVS project templates). That all works fine. I’m also doing some additional, custom validation on certain fields. I’d like to give the user the option to either re-do
How to crop image using croppie js and upload in asp.net core
I use coppie js in asp.net core 6 but when sned models item blob is null send to my controller but a few data send it is ok?? plz help me that why can not send more data to controller? enter image description here Answer I don’t know how your controller is implemented, I have a code example here, you
How call onkeyup javascript function from the table column Html.EditorFor
I am trying to call a function calculfac() from the column of a table for each changes using onkeyup event . The column is numeric column and if we type any value there , the all digits from that column should be stored in variable. But when I type the value in NetHrs column , the function is not called
Razor Communicate Display of Modal from PageModel’s OnPost() Method
I want to communicate from my Razor PageModel’s OnPost() method to display the modal upon validation errors for it. Which basically means changing the modal’s css from display none to block. Is there a way for this to be done? Currently on return Page() the modal is hidden because thats what its css is initially set to, and is normally
ASP.NET Core MVC using bootstrap cards with navigation tabs in a foreach loop with many cards
My question is, is there a possibility with ASP.NET Core MVC to put all data from my database in a foreach loop in different bootstrap cards with navigation? I’ve already tried this and found that it works partially. But as soon as I click on a navigation tab from the second card, the tabs are only changed on the first
Value from form input does not be transmit by the submit button. How can I fix that?
i try to add fields in a form by clicking a button. The fields appear and the validation works either. The problem is, that the value of these input fields isn’t transmitted by the submit button of the form. The framework is ASP.NET Core-Web-App (Model View Controller) with .Net 5. I add the fields with the following code. Can someone
First Dropdown Changes Second Dropdown Related Item display
Hi I have two dropdowns in my Html when I select my dropdown. my second dropdown needs to change related items. My dropdown one has two item Domestic, international second dropdown has three item INR, USD, EUR When I change my first dropdown Domestic item selected need to display in my second dropdown INR Item only display other item need
Close static backdrop modal on failed client-side validation when submitting
Before submitting a form the user clicks a button to open a “confirm” modal. When pressing “Apply” in the modal client-side validation fires and validates all fields. So far so good, but if validation fails the modal does not close and I cannot work out how. I have tried to attach an eventhandler to the submit button and then call