3,561 questions with ASP.NET tags

Sort by: Updated
1 answer

VS 2019 always crashes whenever I try to open this one solution

I am tasked with maintaining an old VB.NET ASP.NET WebForms application. It has 9 projects within the solution. It is at least 15 years old, which is longer than I have been employed in this position. None of the original developers are around. They left…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,764 questions
asked 2025-01-10T20:34:16.4966667+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2025-01-13T18:42:25.01+00:00
Michael Taylor 55,921 Reputation points
2 answers One of the answers was accepted by the question author.

How do I update DBContext after adding new table to SQL database?

We added a new table to our SQL Server database called Occupation. From the ASP.NET Web Form project, I can not seem to access it. Imports System.Data.Entity Public Class CCDBContext Inherits DbContext Public Sub New() …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,764 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,675 questions
asked 2025-01-11T17:50:11.4366667+00:00
Joe Pool (Heartland) 20 Reputation points
commented 2025-01-13T14:35:25.85+00:00
Joe Pool (Heartland) 20 Reputation points
1 answer

Implementing mTLS Between Two Apps Using ASP.NET

Guidance is requested on implementing mTLS between two applications using ASP.NET MVC in C#. or any .net code. The setup will involve a handshake between the server app and client app, developed in a localhost environment, utilizing OpenSSL or another…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
362 questions
asked 2025-01-07T13:20:51.7133333+00:00
Abdul Baba Syed 21 Reputation points
edited a comment 2025-01-11T19:15:08.71+00:00
Bruce (SqlWork.com) 69,196 Reputation points
4 answers One of the answers was accepted by the question author.

Not getting any results...

I'm trying to create a website using ASP.Net and a SQL server connection to retrieve data which is all of data type "nvarchar" and not null. My code is as follows: (Database connection here) using (SqlConnection connection =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2025-01-07T21:20:59.32+00:00
FRANK LUJAN 40 Reputation points
edited a comment 2025-01-10T06:39:17.5233333+00:00
SurferOnWww 3,696 Reputation points
1 answer One of the answers was accepted by the question author.

I am migrating application from dot net 4.8 to dot net core 8. facing error Project ..\folder\folder.csproj targets net8.0. It cannot be referenced by a project that targets .NETFramework,Version=v4.8.

I am migrating application from dot net 4.8 to dot net core 8. facing error Project ..\folder\folder.csproj targets net8.0. It cannot be referenced by a project that targets .NETFramework,Version=v4.8. Project ..\folder1\folder1.csproj targets…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,038 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,185 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
362 questions
asked 2025-01-03T11:53:02.5433333+00:00
Sayali Mahale 20 Reputation points
edited the question 2025-01-09T04:00:16.78+00:00
TP 101.3K Reputation points
2 answers

Validate file content type for txt, log, JSON file in C#

public static bool IsFileValid(IFormFile file) { using (var reader = new BinaryReader(file.OpenReadStream())) { var signatures = _fileSignatures.Values.SelectMany(x => x).ToList(); // flatten all signatures to single list var headerBytes =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,038 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,019 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,189 questions
asked 2025-01-08T17:16:17.0733333+00:00
Surajit Kumar Shah 0 Reputation points
commented 2025-01-09T01:01:29.8133333+00:00
SurferOnWww 3,696 Reputation points
2 answers One of the answers was accepted by the question author.

How to load dropdown values inside gridview or Listview using DataTable

i'm using dropdown values inside modal popup. whenever i am selecting some values in dropdown, i want to assign those values in datatable. Finally, i want to assign datatable values into either gridview or Listview. Is it possible to load values in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,189 questions
asked 2025-01-06T16:45:20.6533333+00:00
BeUnique 2,252 Reputation points
accepted 2025-01-08T12:33:42.86+00:00
BeUnique 2,252 Reputation points
2 answers

Server connection problem on a blazor site

Hi, I have made this app in blazor: Index Occasionally, I encounter this error: "Attempting to connect to the server." Do you know how to solve it? regards, Saeed

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,645 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2025-01-04T20:52:03.84+00:00
Saeed Pooladzadeh 251 Reputation points
edited an answer 2025-01-06T16:11:00.8733333+00:00
Bruce (SqlWork.com) 69,196 Reputation points
4 answers

Blazor and ValidationGroups

I am in ASP.NET since the first version of .NET Framework and I am used to some features that are missing now. Please notice that I've just recently moved to Blazor. Currently, I am wondering why the ValidationGroups are not part of it. I have a kind…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,645 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2025-01-04T13:22:46.66+00:00
Kuler Master 386 Reputation points
answered 2025-01-06T03:42:31.7266667+00:00
Zhi Lv - MSFT 32,831 Reputation points Microsoft Vendor
2 answers

Use signalR with Client in .netcore and server in .net framework(4.6.2)

Hello, I am trying to open a communication channel using SignalR between a client written in c# with .netcore and a server with .net framework 4.6.2 also written in c#. Is it posible? If the answer is no, what can I do to be able to communicate between…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2021-03-24T16:24:15.663+00:00
David Cerezo Romero 1 Reputation point
answered 2025-01-03T17:18:14.46+00:00
Bruce (SqlWork.com) 69,196 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor adds random attributes

Hello guys and all the best for the new year I am struggling with these strange attributes that Blazor keeps adding to all elements. I tried to find more about this behavior but none of the proposed solutions worked for me. For instance, MS suggests…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,645 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2025-01-02T11:02:55.0933333+00:00
Kuler Master 386 Reputation points
edited the question 2025-01-03T13:00:50.49+00:00
Kuler Master 386 Reputation points
1 answer One of the answers was accepted by the question author.

pass the selected value in a drop down to the controller

hi all, I am having difficulties in understanding how to pass the selected value in a drop down list to the controller. I have only seen examples that use the model object and the selected value is just some attribute that is being referenced when…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2024-01-31T14:56:30.48+00:00
elsvieta 371 Reputation points
commented 2025-01-03T08:17:53.4033333+00:00
Syeda Rubaisha 0 Reputation points
2 answers One of the answers was accepted by the question author.

How do I save file on form submit

Hello, As mentioned in the title, I want to save the file to the server. In the past, we were using SaveAs but in Blazor I can't get a reference of PostedFile directly. <div class="row pb-3"> <div class="col"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,645 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2024-12-27T16:34:04.0766667+00:00
Kuler Master 386 Reputation points
accepted 2025-01-02T10:33:24.8666667+00:00
Kuler Master 386 Reputation points
3 answers One of the answers was accepted by the question author.

how is way to create menus on a aspx page

i am using vb.net 2022 and renamed the extantion of a form to aspx now how is posible to create menus on this page

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,764 questions
asked 2024-12-03T15:17:52.7933333+00:00
Simon 306 Reputation points
edited the question 2025-01-02T02:24:29.3233333+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to share "System.Web.HttpContext.Current.Session" between ASP.NET and .NET CORE application

Dear All, I would like to share session values between ASP.NET and ASP.NET CORE application. It is working fine only when the session value is set inside "Session_Start() method in Global.asax.cs. When I try to set session value in an other action…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,189 questions
asked 2024-12-18T15:28:55.29+00:00
Marján Zoltán 20 Reputation points
edited the question 2025-01-02T02:24:00.31+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
2 answers

How to run asp.net web application using visual studio code ?

I work on .NET 4.7. I have an issue: I can't run applications in Visual Studio Code. I don't know how to run it. Startup page is http://localhost:22851/WebPages/loginT.aspx This page opens in Visual Studio 2019, but how to open the page logint.aspx in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2024-12-24T21:40:42.5133333+00:00
ahmed salah 3,216 Reputation points
edited the question 2025-01-02T01:58:43.11+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Fix the error "Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified"

I am using "Asp.net Web Application (.net framework ver 4.8)" and Class Library .net8 but when I reference it I get an error. Server Error in '/' Application. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
770 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,038 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,189 questions
asked 2024-12-31T09:51:42.41+00:00
iman padid 20 Reputation points
accepted 2025-01-01T09:08:59.95+00:00
iman padid 20 Reputation points
1 answer One of the answers was accepted by the question author.

adding model based controller gives me an error in MVC 5

I am trying to add model based controller, according to a tutorial: https://zcusa.951200.xyz/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller I tried reinstalling Visual studio, tried deleting…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,189 questions
asked 2024-06-10T10:18:57.1966667+00:00
David Kamushadze 20 Reputation points
commented 2025-01-01T08:59:11.5+00:00
Hajira 0 Reputation points
2 answers One of the answers was accepted by the question author.

Share data between domains using ASP.NET C#

We have a shared state management server and aim to transfer session values between two domains: modern.com and 111A Both domains redirect to a common page, freelogin.aspx, which is hosted exclusively on modern.com. On this page, I need to retrieve the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2024-11-28T12:54:53.5233333+00:00
Ashok Kumar 221 Reputation points
edited the question 2024-12-31T04:56:41.88+00:00
Ashok Kumar 221 Reputation points
0 answers

Detailed Help Needed for Azure AD B2C JIT Migration Password Reset Flow: Claims Transformation Issue

Context and Use Case I’m setting up an Azure AD B2C custom policy for a Just-In-Time (JIT) migration password reset scenario, and I’m encountering persistent issues that I cannot resolve. My scenario is as follows: A user from a legacy Identity…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2024-12-30T16:41:43.2333333+00:00
Ray Garg 20 Reputation points
edited the question 2024-12-30T17:25:38.6366667+00:00
Ray Garg 20 Reputation points