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

How to Shift Left a row of Thumbnails

My code is currently:<div class="img-wrap">    <img class="item-thumb" src="file1.jpg" id="thumbimg" onclick="ShowLarge(this);" />    <img class="item-thumb" src="file2.jpg"...

View Article


Most standard approach for returning results in an api

Ok so normally I write my apis like this public IEnumerable<WeatherForecast> Get() {but of recent I saw a couple of my .net friends use the ActionResult. Some thing like this below public...

View Article


Rest API request limit - Dot net core 3.1

I have developed a REST API using dot net core 3.1.  I developed the same using dot net core 2.2.  While doing load test, I found that the REST API requests of all types and to all endpoints are...

View Article

issues with Dbcontext.dbset.AddAsync in EF core 3.1

Hi,I am trying to add a record using DBContext.DBset.AddAsync. This is how my code is:await _dbContext.myDbSet.AddAsync(myentity);int result = _dbContext.SaveChanges();Please note that the datatypes in...

View Article

Image may be NSFW.
Clik here to view.

Upload a file to Google drive does not work!

HiI'm trying to upload a file to google drive using google drive Api in my core 2.1 project, So I followed these instructions:https://developers.google.com/drive/api/v3/quickstart/dotnetBut it doesn't...

View Article


Help Needed in xml File reference

Hi,I am working in asp.net core 2.2. i using swagger for documentation and am able to configure and make it work. i am having one issue. i have included the xml comments  for the propertied in of my...

View Article

Image may be NSFW.
Clik here to view.

How to switch to "View"?

Question.1. What HTML page elements to use to follow links to other View? Example. 1.1 - <a> </a> 1.2 - <input type = "submit" name = "name" value = "submit_1" /> 1.3 - <button>...

View Article

Installing KnockoutJS on asp.net Core using VS2019, help needed

Hi ,Am trying to install knockoutjs on asp.net core web application, it got installed successully,using VS2019 .But when I search for the specific js in the project folder, couldn't find any. Being a...

View Article


Image may be NSFW.
Clik here to view.

How to execute a script at the click of a button?

Project structure - see picture. How to make the text "test" move to the right after each button click? How to do this using elements: - <a> - <button> Start js </button> - <input...

View Article


defaulted dates overridden every time I save changes

I have used: modelBuilder.Entity<PersonSurveyed>() .Property(p => p.Created) .HasDefaultValueSql("getdate()") .ValueGeneratedOnAdd();modelBuilder.Entity<PersonSurveyed>() .Property(p...

View Article

w3p3 IIS process blocking file deletion

Hi,I am successfully uploading pictures from a webpage to my server, creating some OpenXML and downloading that file. Now, after that, I would like to delete the pictures that were uploaded. But...

View Article

Encrypt DLL files under a IIS web application

I know that there are some tools that can decrypt dll files and turn them back to c# code.Is there any free tool to help encrypt the files in advance, so that the customer won't be able to do that?I...

View Article

Session data getting lost after data being posted on page.

I have an ecommerce app in dotnet core 2.2 For the customer's to make their payments they have to be redirected to a bank's secure page where they will enter their card number ccv etc. After that they...

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

ui controls for .net core

Can we know the free ui controls for .net core available. Why cant the microsoft provide the basic ui controls for .net core

View Article


What does it mean for an ASP.NET Core app to run locally?

I am reading this tutorial: Host ASP.NET Core on Linux with Nginx https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx And I am struggling to understand this sentence:"Publish and...

View Article

jqgrid with crud operation in .net core

I have observed jqgrid with crud operation in mvc. But would like to use in .net core project.

View Article


How to update/remove certain items in a cache object?

Hello,How to update/remove certain items in a cache object using IMemoryCache?When getting cache object, I do below...[HttpGet] public IEnumerable<string> Get() { string key = "ALLCar-Key";...

View Article

ASP.NET Core 3.1 :JsonPropertyName Error

I am having Asp.Net Core 3.1 Application, And After changing DataMember to JsonPropertyName Getting error as below<div>Error CA2227 Change 'FilterStatus' to be read-only by removing the property...

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
Browsing all 9386 articles
Browse latest View live


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