Category "c++sharp"

Is it professional to save Users shopping cart in a sessionState for making it persistent using asp.net?

I want to make a persistent shopping cart for a MVC application, in other words if a user add some products to his/her cart when logged in and leaves the applic

How to set font size in empty cell of a Word table using the Open XML SDK?

I am creating a table in OpenXml with C# in a Word file. I used some code mentioned in this question to set the fontsize of the text in the cells. It works fine

SqlDataAdapter missing in a ASP.NET Core project

I'm trying to get a connection to a database without Entity Framework, using ADO.NET in a .NET Core 1.0 project. using System; using System.Collections.Generic

Entity Framework Core error "Column names in each table must be unique"

I have manually added the column IdCategory to my table Books, and now each time I try to run Update-Database, I get this error: fail: Microsoft.EntityFramewor

Cannot implicitly convert type 'DSharpPlus.CommandsNext.CommandsNextExtension' to 'DSharpPlus.CommandsNext.CommandsNextConfiguration'

I try to make a discord bot in c# with plugin d# and I have this error that shouldn't exist I watch a tutorial and I copy the code so it should work public cla

Comparing dates works on one machine but not on another

I have an issue where on one machine comparing dates fails and on another it passes. I'm using Assert.AreEqual: Assert.AreEqual(Convert.ToDateTime(tableValue).

Enable-Migrations Exception calling "SetData" with "2" argument(s)

I created a library based on .NET 4.6.2 version. To the library, I've added the EntityFramework version 6.1.3 package. I created a model as follow using Syst

How to connect to Cloud Firestore DB with .net core?

So far all the examples of using Google Cloud Firestore with .net show that you connect to your Firestore db by using this command: FirestoreDb db = FirestoreD

how to generate the Repository and model/entity classes with all CRUD operations using database-first apporach in C#

I have a database for which I want to generate the repository and entity/model classes with all CRUD operations. To achieve this I found a tool, named Entity D

How to convert float to uint by float representation?

In C I will do this to convert float representation of number into DWORD. Take the value from the address and cast the content to DWORD. dwordVal = *(DWORD*)&a

How do ASP.NET Core's "asp-fallback-*" CDN tag helpers work?

I understand what the asp-fallback-* tag helpers do. What I don't understand is how. For example: <link rel="stylesheet" href="//ajax.aspnetcdn.com/aja

c# read pst file and extract .msg file on web application

my project is create a web application which used mvc+api architecture I don't know how to realize this function on web application, which is read the pst file

Azure AD API request 401 Unauthorized

I have a standard Web API running on an Azure website with Azure AD authentication enabled, when browsing to the API in a browser I am able to login via the bro

Order of execution with multiple filters in web api

I am using latest web api. I do annotate some controllers with 3 different filter attributes. 1 [Authorize] 2 [RessourceOwnerAttribute derived from Authorizat

Why isn't my assembly signed even after I specified it to be in properties

Why isn't my console application assembly digitally signed even after I specified it to be signed in the project properties?

asp.net mvc @ put out wrong unicode string

<meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> <meta name="description" content="@("Du lịch chữa bệnh ở

HOW TO FIX: The remote server returned an error: (400) Bad Request

I'm trying to fix this error, I know that there are another similar questions with the same error, but the line: request.ContentLength = 0; it doesn't fix my ex

Not allowed to load local resource:

i want to stream online videos ..but i am facing j query error Not allowed to load local resource: ...i find many solution but that all did not work for me. he

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m