Asp.net-core Questions
Ad
React custom Component(DataTable)
Im new to react and im trying to build a custom componenet with parameters. im just wonding whats the exact way on doing it. here
html template not loading: Could not find a part of the path '/Helpers/Email/Templates/template.html'
I'm working with a .net core 2.1 web api. i'm using 4 projects for this solution. i'm trying to load an html template, in local works
Why wont my fetch finish when i'm including parameters
I have been trying to fetch some data from one of my components in react, but when i include a parameter in the url, nothing happens and the fetch
ASP redirect with delay
If (user.emailconfirmationcode == confcode) { user.emailconfirmed = true; _context.update(user); _context.savechanges(); } else {
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"
How to access KeyValuePair collection as JSON array
I'm making ajax calls to a page in asp.net core 3.1. the response is a jsonresult whose value property is an
Reading appsetting-test.json file in asp.net core 5 test project
I have a test project with asp.net core 5 and trying to read the appsetting values. created an appsetting.test.json file in the test
Array creates validation error in ASP.NET 6
I noticed a validation error when changing my webapi project to use .net 6 instead of .net core 3.1 for my array query parameter types. previously
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
Ad
EF Core 6 – ToQueryString() on a query created with FromSqlRaw thows exception "Sequence contains no elements"
It is the first time i'm using the query mode of ef core. because my large query with parameters threw also the exception "sequence contains
save blob file (audio/ogg) using asp.net mvc core
Must be a simple question but i've been struggling for a week with it. i have a super simple jquery based audio capture - what i just want is to
Why do command lines now have two hyphens (--) behind each parameter? Where did it originate, why not use a single hyphen?
.net core, and several javascript libraries seem to now use two hyphens for each command line parameter. why is this happening now all of
convert JQuery into addEventListener for keypress event
I needed to craete an input which only accepts number. for that, i have created an input with type text and only accepts 5 digits of length.
How to pass three parameters to url address using ASP.NET Core Web API
For now i have a procedure i wish to call: call get_discharge_station('2022-02-02', 6, 11800); i want to pass
.Net localhost servers when creating Angular/React applications
I am using vs2017/2019 and .net core 2.1 as to create angular or react applications. angular-cli or
React - update state in the child component when parent changes
I have a simple application with two react components: vacancies.jsx - lists vacancies counter.jsx - shows the number of
ReactJs - accessing state in the onclick event
I have the following .jsx file, trying to access the vacancies property on the state object in the onclick event of the delete hyperlink, but keep
Authorize React Components for Users by Role/Permissions
I made a spa with react and asp .net core. the authentication is done via bearer-tokens (using identityserver4 and oidc-client) and authorization
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
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value - ASP.NET
How to properly deserialize post method "update" while developing telegram bot in asp.net core web api by using telegram.bot package? i
Ad
'IFormCollection' does not contain a definition for 'GetValues' in ASP.NET Core MVC
I am using below code in asp.net mvc entity.currentpassword =
FirebaseAdmin messaging returning 404 not found
I am writing an api that sends an firebase message (using the official firebaseadmin library) when requested to a android device. i got it working
How .Net Core app can authenticate from Expressjs session?
The first app is developed on expressjs. authentication modules: passport.js express-session cookie-parser connect-mongo
How can I configure by event bus in ASP.NET Core 6 - Migration to .NET 6
I want to migrate from asp.net core 5 to asp.net core 6. how can i configure by event bus in .net 6? here is my code in asp.net core 5:
ASP.NET Core with React template returns index.html
I am learning full-stack web development with .net core and react, so i created an asp.net core web application project with react template in
Add Authorization to AspNet Core 3.0-preview React project (with Authentication)
Creating a new aspnet core project using dotnet new react --name myproject --auth individual sets up a new react project with
ASP.NET Core with - Refresh UI with SignalR when certain changes are made to the DB
I have a notification panel which, by itself, holds notifications relevant to the current user. i am struggling to wrap my head around the whole
How to migrate from a multipage app to Piral
We run a few asp.net core applications that do come with some pages. these are all "classic" multipage applications. for our new portal
How to send multiple files to controller of ASP.NET Core using Axios?
I have tried iformcollection and tried to deserialization of json but nothing worked for me. i'm new to asp.net core, react and axios. i'm working
Do we need NodeJs for running react app on server?
I have .net core 2.2 project work with react, i'm about to finish the project, i have a question i was wondering before i published.
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
Ad
Picasso is not loading Image from URL on ASP.NET Core Web API server
I'm using picasso in my application to load image from url and it's working fine until i decided to move all of my images into my asp.net core web
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
Cant pass url param to Objcet using [FromRoute] in APS.NET Core
I learn asp.net core and have this react app that works ok except for that i can make a crud call to the asp.net controller but the
Can someone please explain the reducer function of this reducer function header?
This question may seem trivial for some, but i've been studying react, redux, and javascript for some time now. the only missing piece is the
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 to fill fields with a single click on a table row with ReactJS
I am making an react application with a simple crud functionality. in my environment i use a framework called react bootstrap 2. link:
How to create download feature using ASP.NET Core 2.1 and React JS?
I'm using asp.net core and react js. i'm newbie to this both platforms. i have used axios for requesting data and getting response from server.
Transfering backend permissions to clients in asp dotnet core 3
I have a dotnet asp core 3 backend that defines roles and permissions for my webapi. now i need at frontend side (javascript) get these
C#: How to get Firebase user jwt token without incoming request?
I want to write integration tests, so i need to attach firebase jwt token to call api methods. i don't have any incoming requests, i want to get
How to get AuthorizationCode for RequestAuthorizationCodeTokenAsync
I am implementing identityserver. i need to use requestauthorizationcodetokenasync to get a token that can be passed to userinfo endpoint. so i
Why do I need to create a DateTime service which returns DateTime.Now instead of using DateTime.Now directly?
I have been watching jason taylor presentation about clean architecture with asp.net core (timing 35:52)
Ad
Send real-time data from networked C program to a browser client to plot
I am faced with an architectural problem to which i cannot seem to find a suitable solution so far. i have a linux box which is just a machine
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
Cannot read property 'value' of undefined at HTMLTableElement.<'anonymous'> Update
I have c # code in asp.net view: (it create time inputs for me with the class described) view: <td
Authentication Handler not blocking requests
I have added authentication to my api with the possibility to authenticate with two different authentication schemes. based on the format of the
How to call an action of controller in ASP.NET Core angular web application
I created an asp.net core angular project. there is a default component of angular and a homecontroller of mvc. when i run the
different models as an input for a function
I have a function that takes a model as an input and converts it into a json body, the problem is i have too many models to take as an input, so
Why there is a dependency to install NodeJs for a .Net core web application which uses angular template?
When i create a new .net core web application in visual studio using angular template and try to run the barebone application, build error is
how to check if the user is authorize to access page based on its role
I have a web application where front-end is reactjs and backend is asp.net core, i want to allow access the page based
Ad
Download file on React js passed as byte array
In the db i am storing and image and a file in a byte array. from a request (written in .net core) i retrieve the byte array to the front end
Posting a list of object which is located inside a viewmodel from view to controller in asp.net core 2.2
I have a view model called "requestgoodsbrandviewmodel" and it's the combination of two models (request and requestgoodsbrand), i want to post a
ClickOnce on a net6 Console + Web Project
I have a kestrel enabled web app (i need to set up a web server listening on a custom port), but this should remain a console application that
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
Getting the values of data-* attribute and set a list of them
I was trying to give a data-attribute to an element, them getting by id that element and try to access to data, but without success, maybe its
how to get config data from appsettings.json with asp.net core & react
I'm using asp.net core with react/redux and i'm trying to move my config data that is in react/redux into the appsettings.json file. but once the
How to set relative paths using React Router in an existing ASP.NET Core app that is using MVC
First off, i would like to know if my course of action seems reasonable. i am trying to integrate react within a large asp.net core
Cost must be multiple by 5
I am working small application with basic crud operation and i have product model. in this model i have something
Ajax POST body is blank when hitting API method
I'm loosely following this
How to achieve File upload using WEB API Dot net core?
I am working on asp dot net core web api where i need to send multiple attachments. i tried like following <input type="text"
ASP.NET Core and React gives Failed to start 'npm' / The directory name is invalid
I have a core 2.2 project with create react app in visual studio 2017 and after a 3 month pause on the project i am now returning but i cannot run
Ad
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
The LINQ expression could not not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly
I want to maintain child-grandchildren relationship. i need to distinguish which children ‘itemno’ returned which grandchildren ‘itemnos’.
ASP.NET Core 2.1 Web application with React.Aspnet error when running as Docker application
I have a asp.net core 2.1 web application with react.aspnet. it runs perfectly when running in iis. but when i run it in docker, the application
Clear value input fields and update with new value when select value from dropdown list
I have a div which contains five input fields. initially the input fields have no value and will be hidden. on dropdown value change i want to
Identity4Server many SPA clients best approach?
Hi i have inherit a system like this: an api and many fronts (spas) they share a common menu with links to navigate to each others but
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
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details
I'm learning webapi so i'm trying to build a simple api connected to sql server and i got this error when i add new movie data
Azure AD Authentication with .NET Core Web API
We have a simple setup. frontend web application gets a token from azure ad. frontend uses that token to authenticate requests to our backend .net
Post controller recognizes only parameters sent by "from-data" or "x-www-form-urlencoded" from postman
I have a very simple controller [allowanonymous] [httppost] [route("login")] public
Generating a new ServiceStack React Project is missing SharpPagesFeature
I updated to the latest @servicestack/cli npm install -g @servicestack/cli + @servicestack/[email protected] updated 5 packages in 5.862s
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
Ad
How to upload image from React to ASP.NET Core Web API?
I have web api controller in mt server side [httppost("createimage")] public void createimage([frombody] imagedto img) {
Entity Framework only saving some of my fields
I'm trying to write a small web api and it is my first time using entity framework. my problem is that only some of my data gets saved.
Seeding with ASP.NET Core with one to many relationships
I am trying to create a seed for my database in asp.net core but i am having trouble with the relationships between the models. i have 3 models
Passing array of objects to Controller Action using jQuery ajax request using .NET Core 2.2 doesn't work
Array of objects after stringifying is not passed to controller action and the parameter of action (the model) is null. i
TimeoutException: Asp.net Core 2.2 with react , requests timeout period of 50 seconds
When i run the project with the vs 2017 on iis server the timeout exception occurs timeoutexception: the create-react-app
ReferenceError: internalBinding is not defined
In asp.net zero 5.x, npm run create-bundles fails. i am building a licensed project on the asp.net zero's asp.net core mvc +
Unable to get value from nested JSON to dropdownlist
Here is the sample json
How to make ReactJs and AngularJs co-existing in a ASP.Net Core web application?
We have build a website based on asp.net core serving razor cshtml pages. each page is like its own independent spa with its own angular.module.
Setting custom ID on signalR core start
I am building a app that involves a 1:1 customer and administrator session. i'm using opentok to connect a customer with an administrator and
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
Business logic in the API controller
I have this method in my clientscontroller: //post api/v1/clients [httppost] public async task<actionresult>
Ad
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
Is it OK settings location.href to force routing on the server-side?
I'm working on a react web app with an asp.net core + typescript back-end. the routing is on the front-end, managed by the react-router v4.
Collection always null when using [FromForm] attribute
I'm trying to post formdata including both a file and a collection. this is my model:
FORM not submitting on click of radio button in .NET Core
I am attempting to submit a form on toggle(radio button). i am using jquery to submit the form as follows:
Error TS2717 when populating drop-down lists on an Angular with ASP.Net Core app
Angular v6.1.10 | asp.net core v2.2.102 | node.js v10.15.0 i am populating drop-down lists on my angular and
GetCurrentDirectory() for SPA source path in startup.cs is returning a different path for VS2017 and VS Code
In my asp.net core react application there's a place in startup.cs file where path for react source directory is defined.
Map route parameters to model in asp.net core
I have an action with the following annotation, [httpget("update/{hash}")] public async task<iactionresult>
What is a secure approach for sending credentials to a Rest API to receive a JWT Token?
I have designed a restful api in .net core with two endpoints. both are http post methods and they use https when deployed in iis.
Flutter web call to .net core api error 'Access-Control-Allow-Origin'
Flutter web call to .net core api error 'access-control-allow-origin' help me i want flutter-web call api i use .net core api
connection.disconnected is not a function
I am confused :) i am using signalr with asp.net core with a javascript client. i just want to detect a disconnect and reconnect
Ad
.Net5 sdk is installed but why can't choose to create project
I recently installed versions of .net core sdk 3.1 and 5. when using the .net5 version today, i found that i couldn't select the version when i
Ionic does not show json data on android emulator or devapp
On localhost:8100 with ionic serve command, app is calling json data via web api (asp.net core
Ad
Blog Categories
Ad