Asp.net-core-mvc Questions
Ad
Asp.Net core MVC Javascript Ajax parameters null HttpPost
I am writing a javascript function for a button <button type="button" class="btn btn-sm btn-outline-secondary"
Copy blobs from one Azure container to another using ASP.NET Core 6.0 MVC with C#
I have one blobs container which is private, my files are uploaded successfully. now, if i copy and paste file url, then it throws
Asp.net core MVC disable lot of elements on client computer without contacting server
Hey i have a lot of elemetns. when i push button it will check what background color is and then based on that disable or enable a lot of
'IFormCollection' does not contain a definition for 'GetValues' in ASP.NET Core MVC
I am using below code in asp.net mvc entity.currentpassword =
how to keep the AngularCLIServer running between builds on asp.net core with Angular 7
I am using aspnetcore and angular 7. my angular app is getting quite big, so re-compiling both the c# code and the angular code every time i run
How to download file using react js and asp.net core v3.0
I am getting base64 pdf string from web service then converting the base64 to byte[] then returning the file in controller but file is not
POST method not working in .NET Core MVC while using Jquery , AJAX for calling api from View(html page)?
I am performning crud opeartions in .net core mvc project by using an api , and list's to store all data instead of a database.i want to call the
How do I populate a dropdown menu based on the user selection in a different dropdown menu in ASP.NET Core MVC?
For example: dropdown a lists animal types: mammals, reptiles, fish. then dropdown b would list animals available for a selected type. if
How to toggle visibility with multiple buttons?
Lets say i have several toggle buttons. and toggle 1 and 2 will toggle the visibility of a div, whenever one or both of those buttons are active,
.NET Core MVC - AJAX POST Request with prefix binding
I would like to post a request via ajax to a controller with a model prefix. i need a prefix as i have two forms on one page with similiar model
Ad
The type or namespace name 'Bind' and 'Include' in .Net Core
I am migrating a .net application to .net core. in .net application, we were using bind and
OnActionExecutedAsync Not available in ActionFilterAttribute in .Net core
I am porting over a action filter attribute from .net framework 4.6 to .net core 3.1 . one thing i noticed in .net core actionfilterattribute is
Get json data from ajax,process it,return answer
I have some troubles with transfer json data. i have some dynamic page. i collect data to json object "filters". var
How to Integrate Dropzone.js with ASP.NET Core MVC?
I want to upload some documents in my database using an iformfile. on client side i'm using dropzone.js but it's not working properly. whenever i
Problems referencing static JavaScript files in wwwroot - .Net Core 2.2 Signalr
I'm having difficulty referencing the relevant js files for signalr from the wwwroot folder. the
Invoke ASP.Net Core MVC controller action with parameter doesn't work
I have a simple asp.net core mvc controller action method defined as: public class mymvccontroller : controller { public async
Why use ReactJS with ASP.NET CORE MVC?
I have worked in asp.net core mvc, before. what are all the advantages in using reactjs over asp.net core? would not that
Collection always null when using [FromForm] attribute
I'm trying to post formdata including both a file and a collection. this is my model:
Cleaner way to get form parameters in ASP.NET Core MVC Web App?
I've got a web app for a form in which we collect a lot of information from the user from a single form, what's the best way to collect all this
Why my Fetch URL in React app does not change?
I have something weird, that i am trying to trouble shoot. my target is to have antiforgerytoken in my fetch call. i have been
Import same html with two Html.Partial have same id
I am importing one .cshtml file twice in another cshtml. i setting up different id for every imported partial view but when i tried get id clicked
Ad
Keeping authentication state between Firebase - WebApp (.NET Core MVC)
I am creating an asp.net core mvc app, where the authentication provider will be firebase. my web app is hosted in azure
ASP.NET MVC 6 Connection Sting config.json
The issue that i am having is when i run the program i get a "system.nullreferenceexception" exception. not sure what the problem is. this issue
Reading config.json in vNext without Startup.cs in Beta8
So i don't have a startup file because my dal is in another project. i just want to be able to read the config.json file in that project to get
NullReferenceException thrown while reading config.json in MVC6
I'm working on mvc6 webapp. my startup.cs has the following code- public class startup { public static
Arguments Value Not Defined error in ASP.NET MVC
For the code given below , when edit is clicked the argument pass to parameter the function become like this edititem(ldu_1)
Importing an external js file into another external js file
In my asp.net core mvc application i have separate .js files for few pages, they contain normal validation and client side logic . i have
Ajax call doesn't pass string to controller
I am trying to pass a string to an iactionresult function in an asp.net core 3.1 controller. ajax: $(function
Using SharedLocalizer and javascript in ASP.Net Core
I am using asp.net core 2.0 to develop my mvc application. however, i am using the sharedlocalizer in the view. i use the following code to inject
.Net Core 2.1 - Read appsettings.json in javascript file
I have a web application in .net core 2.1 using signalr. i need to pass huburl into custom javascript file. is that possible in .net core?
What is the best and most efficient way to get data by JavaScript from EntityFramework database in my case?
Right now in my asp.net mvc core2 project i have a model in ef database, that contains several properties: public
How to pass an array from controller to _layout.cshtml
I have to pass an array to my _layout page (which does not have an @model). the array must come from an controller method such as:
Ad
Multiple File Upload using Axios & Vue.JS in ASP.NET Core
I'm trying to upload a multiple files/images using vue.js and axios. my backend is asp.net core. but the problem is, whenever i put breakpoint in
Form in view breaking CSS/JS performance optimizations
I am struggling with the performance optimizations for scripts and css in asp.net core mvc app. i use bootstrap with loadcss to preload
ViewModel not passing information correctly Asp.net Core MVC
I've fairly new to asp.net core mvc and have spent days researching this and i can't find my error. i'm simply trying to pass data from a
Error view Index.cshtml not found for ASP.NET Core 6 MVC app when build on Azure build agent
I get an error "view index.cshtml not found" for my asp.net core 6 mvc app when building it on azure build agent, but when building
What is the best way to move your code out of the controller and into a helper method class in .NET Core
How can i move repeated code sections out of a controller into a helper method class instead of having to repeat the code in .net core? please let
What is the best way to move .NET 6 CORE Authorization Policies out of program.cs for a clean program.cs
I have lots of authorization policies in my .net 6 core project. right now my program.cs file (.net 6 - does not have startup.cs) is cluttered
Submit form on Radio Button click in ASP.Net Core
Using asp.net core i have a page with a few radio buttons that would alter the display of the page and what i would like to do is if a user were
Why I get Value cannot be null. (Parameter 'connectionString') error message after Adding Migrations
I have error message while i am trying to add-migration and i get error message value cannot be null. (parameter
Can/should IdentityServer4 be used to create a token for user-email verification
I have identityserver4 setup for api authentication although i have a use case where i want to verify that a guest (user) is essentially a valid
ASP.NET Core MVC throws an exception on select
View model: public class appsettingsviewmodel { [required, display(name = "number of rows per page: ")] public
How to call a stored procedure with JSON output in EF Core 5
I have a stored procedure with a json format output. you know that a json format output is in a string format. database context object
Ad
How do I set up ASP.NET Core + Vue.js?
I need to integrate vue.js with some asp.net core mvc views. i picked vue.js over other alternatives because it seemed to be simpler – "just
Logging to database in ASP.NET Core MVC 6
In my old mvc5 project all log informations was saved on a sql server database through log4net. i would like keep logger structure of asp.net 5
Ad
Blog Categories
Ad