Questions tagged [asp.net]

ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.

368,861 questions
0votes
0answers
9views

Updating an api endpoint, that runs an import, to take it a date/period to backfill missing data

I want to update an endpoint that runs a spot rate import, to take in a date or something to control the file that gets imported. So far I had it hardcoded to last month. I wondering if how I would ...
0votes
1answer
17views

Visual Studio - Adding New Item - Why so few options available?

I am using Visual Studio 2022 with an old ASP.Net Webforms application. When trying to add a new item (such as an aspx page or class), I am only getting the following options: On other "modern&...
0votes
0answers
10views

The instance of entity type 'TranslationTables' cannot be tracked because another instance with the same key value

"System.InvalidOperationException: The instance of entity type 'TranslationTables' cannot be tracked because another instance with the same key value for {'plan_code'}" Stucked up on this ...
0votes
1answer
15views

Using Dapper to return list of objects, each parent containing two other objects

I'm new to Dapper, and have a 3 model class example. The SQL Database has associated tables for each model below. My aim is to populate a list of Job objects (ie. all records in the Job table), each ...
-3votes
0answers
31views

Setting the visibility of Response Group on code behind C#? Image has been attached [closed]

enter image description here Use Response Group: [enter image description here][2] ...
-1votes
1answer
36views

How to run code between asp.net and console app?

i have asp.net project and console app I would like to execute a method in my console app project once the person has access to a page of my site how to do? since he is launching into different ...
-1votes
0answers
23views

Node Js convert Express webserver , Cors, MySQL database connection to C# .NET [closed]

I am trying to convert a web service that I created in node.js to C# .NET . Below is the JS code: const express = require('express'); const cors = require('cors'); const mysql = require('mysql2'); ...
2votes
2answers
40views

Why do @Html.EditorFor and @Html.PasswordFor create different style boxes in MVC?

I am currently using the @Html.EditorFor HTML helper for the password field. I want to use the @Html.PasswordFor HTML helper instead. I copied the current code and replaced @Html.EditorFor with @Html....
  • 1,936
0votes
2answers
28views

How to loop thru all controls on a web page using VB.net

I'm trying to come up with a way to loop thru all the controls ( textboxes, check boxes, dropdown lists,etc) on an aspx page. I tried converting some of the solutions given on line for C# to VB but ...
-1votes
0answers
32views

How do i write this specific code for seeding users in Program.cs in .NET 6? [duplicate]

public static void Main(string[] args) { var host = CreateWebHostBuilder(args).Build(); using (var scope = host.Services.CreateScope()) { var services = scope.ServiceProvider; ...
1vote
2answers
44views

how can I reduce 2 select to 1 select linq to gain performance?

my question is simple but I got stuck with something. Can you tell me how can I reduce 2 select into 1 select LINQ in c#? I am using CloudNative.CloudEvents NuGet package for cloud-native events. var ...
0votes
1answer
34views

how to get check/uncheck javascript working with asp components

I'm trying to create a set of check boxes linked to a dataset, with a header checkbox that checks or un-checks everything. I found and example of this in the following blog https://www.webcodeexpert....
0votes
1answer
37views

Entity Framework not saving jsonb property

I have an update method: public class User { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string City { get; ...
0votes
0answers
23views

How to share ASP.NET Cookie with Angular 12 application

How to share Asp.net cookie with Angular 12 application? I have the following code in my ASP.NET application to create cookie: HttpCookie cookie = new HttpCookie(".AspNet.SharedCookie", ...
0votes
0answers
16views

ASP.NET Nuget version error when deploying to Heroku

When I deploy to Heroku, I get an error stating that my Nuget version is not up to date. When I checked my Nuget version from the command line, it was 6.2.1.2, and I don't have Microsoft.ClearScript....

153050per page