Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Hosting ASP.net Core MVC on Raspberry Pi 3b+ Acces denied

Hello peopleI am programming in ASP.net normally for MVC but I am making some website for school project and I thaught maybe it is nice when I can run it on a Raspberry Pi. So after searching on the...

View Article


GridView in .Net Core (with razor)

Hi,I am totally new at Core and Razor pages, I have searched for samples to fill a html table (since Gridview is no longer available) but all I see is MVC and I need Razor.Can somebody help me with a...

View Article


Mixed Authentication

Hi all,I hoping someone can give me some advice on the best way to proceed there are lots of solutions to this I have seen but none seems to fit my needs.So I am creating a MVC application in .NET Core...

View Article

Sorting MVC View Results (really more of an architectural issue)

My controller has an [HttpGet] index() action that displays a form with several inputs that are not bound to my database.  For example there is a drop-down containing all the years from 1960 to 2020....

View Article

Image may be NSFW.
Clik here to view.

Second login form in one solution

I start use ASP.Net Identity in my app. I have one page (/identity/account/login) where i can type login and password and login to page. But i want create second login page in home page. In home page i...

View Article


Modal popup and pass value

Hi,I am starting with Razor Pages, I have a table and each record has a "details" button, so I need to show a modal popup with the details, I used to do this in asp.net with Ajaxtoolkit...

View Article

Image may be NSFW.
Clik here to view.

How to add google Analytics to my core 2.1 web app locally?

HiI'm totally new at Google Analytics.I want to add google Analytics to my core 2.1 web app. to show analytics on localhost, So I created a google analytics account.And created Admin account and...

View Article

ASP.NET Core - XML

Hi,I need your help again. Last week I published a thread because I couldn't read the XML. This I have already managed to do. But now I have another problem. When I try to read the file it gives this...

View Article


Showing links based on user access to groups in AAD

Hi, I am currently developing a website to enable my theatre group to be able to do things remotely but i am having some difficulties. I am unable to show links based on the access to groups in the...

View Article


unit test migration from asp.net to asp.net core

HI, I migrated unit test and getting error method is inaccessible due to its protection level c#method is internal and in unit test project i have added reference this behaviour is working in asp.net...

View Article

Javascript and Asp.Net Core 3.1 input check boxes broken

Hello,     So I had this working in Asp.net Core 2.2 with Twitter-Bootstrap 3.3.7.  I then upgraded to Asp.net Core 3.1 and Twitter-Bootstrap 4.4.  Now I am unable to get some of my javascript...

View Article

Returning a mp3 file trough File Action results, stops after being played for...

I have an action that returns mp3 file as below :  var memory = new MemoryStream(); using (var stream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read)) { await...

View Article

How to resize image before upload to varbinary column?

HiI'm uploading an image to a varbinary column in the database successfully. But I want to resize it before uploading.So this is what I tried:Guests model:public byte[] Image { get; set; }public string...

View Article


Value passed by session from method to another does not work!

HiI have tow query type models that I want to get their data by ajax in one view with Entity Framework Core.I'm trying to pass the number of records returned by Ajax to the caller view by session, But...

View Article

How can I return a 404 status code by app.UseStatusCodePages?

These days I am handling 404 Not Found by Asp.Net Core .As we know, there are several ways to achieve this:...

View Article


.NET Core REST API

Hello, I have to create REST API in .NET CORE 3.0 without using Entity Framework.Can anyone tell me a link or put some code about it?

View Article

Contoso University - DbContextOptionsBuilder' does not contain a definition...

I am trying to work through the Contoso University example application.  I have simply copied the Startup.cs class statements:services.AddDbContext<SchoolContext>(options =>...

View Article


ASP.NET Core 2.2 CORS No 'Access-Control-Allow-Origin' header

I'm having trouble to consume a ASP.NET Core 2.2 web api.This javascript code below works well, I can get all clients finefetch('https://10.20.0.20:8081/api/clients/list').then(data => {...

View Article

FileResult method is not finding text file in wwwroot to download

Good Afternoon!I'm having an issue with my FileResult method not finding a text file in my wwwroot. The method is currently working up until the return statement. The text file is being created in...

View Article

Upload image array with other fields, not just images.

I currently have the following:@page @model pcore31.AddimgModel @{ Layout = null; } <!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>