3,559 questions with ASP.NET tags

Sort by: Updated
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,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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.
360 questions
asked Jan 7, 2025, 1:20 PM
Abdul Baba Syed 21 Reputation points
commented Jan 9, 2025, 5:19 AM
Abdul Baba Syed 21 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,032 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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.
360 questions
asked Jan 3, 2025, 11:53 AM
Sayali Mahale 20 Reputation points
edited the question Jan 9, 2025, 4:00 AM
TP 101.1K 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,032 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,018 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,177 questions
asked Jan 8, 2025, 5:16 PM
Surajit Kumar Shah 0 Reputation points
commented Jan 9, 2025, 1:01 AM
SurferOnWww 3,696 Reputation points
3 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,559 questions
asked Jan 7, 2025, 9:20 PM
FRANK LUJAN 0 Reputation points
commented Jan 8, 2025, 11:28 PM
FRANK LUJAN 0 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,559 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,177 questions
asked Jan 6, 2025, 4:45 PM
BeUnique 2,232 Reputation points
accepted Jan 8, 2025, 12:33 PM
BeUnique 2,232 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,644 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Jan 4, 2025, 8:52 PM
Saeed Pooladzadeh 251 Reputation points
edited an answer Jan 6, 2025, 4:11 PM
Bruce (SqlWork.com) 69,036 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,726 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,644 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Jan 4, 2025, 1:22 PM
Kuler Master 386 Reputation points
answered Jan 6, 2025, 3:42 AM
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,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Mar 24, 2021, 4:24 PM
David Cerezo Romero 1 Reputation point
answered Jan 3, 2025, 5:18 PM
Bruce (SqlWork.com) 69,036 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,726 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,644 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Jan 2, 2025, 11:02 AM
Kuler Master 386 Reputation points
edited the question Jan 3, 2025, 1:00 PM
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,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Jan 31, 2024, 2:56 PM
elsvieta 371 Reputation points
commented Jan 3, 2025, 8:17 AM
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,726 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,644 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Dec 27, 2024, 4:34 PM
Kuler Master 386 Reputation points
accepted Jan 2, 2025, 10:33 AM
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,559 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,762 questions
asked Dec 3, 2024, 3:17 PM
Simon 306 Reputation points
edited the question Jan 2, 2025, 2:24 AM
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,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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,177 questions
asked Dec 18, 2024, 3:28 PM
Marján Zoltán 20 Reputation points
edited the question Jan 2, 2025, 2:24 AM
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,559 questions
asked Dec 24, 2024, 9:40 PM
ahmed salah 3,216 Reputation points
edited the question Jan 2, 2025, 1:58 AM
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,032 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,726 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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,177 questions
asked Dec 31, 2024, 9:51 AM
iman padid 20 Reputation points
accepted Jan 1, 2025, 9:08 AM
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://video2.skills-academy.com/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,559 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,177 questions
asked Jun 10, 2024, 10:18 AM
David Kamushadze 20 Reputation points
commented Jan 1, 2025, 8:59 AM
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,559 questions
asked Nov 28, 2024, 12:54 PM
Ashok Kumar 221 Reputation points
edited the question Dec 31, 2024, 4:56 AM
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,559 questions
asked Dec 30, 2024, 4:41 PM
Ray Garg 20 Reputation points
edited the question Dec 30, 2024, 5:25 PM
Ray Garg 20 Reputation points
0 answers

Are navigation added automatically to the dbSet?

I have a question Dbset public class Question { public int Id {get; set;} public string Text {get; set;} public virtual ICollection<Choice> Choices {get; set;} = [] Choice DbSet/Model public class Choice { public int Id { get; set; } …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
770 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Dec 27, 2024, 8:15 AM
Mahesh Kumar 65 Reputation points
commented Dec 27, 2024, 2:13 PM
Mahesh Kumar 65 Reputation points
1 answer

Performance issues in Session State

Hi. We are running a .Net Framework 4.8 mvc web application with redis session state setup. We are experiencing performance issues and the profiling we have done indicates that session state, specifically GetSessionStateItemAsync, is waiting for long…

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
264 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked Sep 6, 2024, 12:41 AM
Danielle Schlie 0 Reputation points
edited an answer Dec 25, 2024, 7:24 AM
Sina Salam 15,006 Reputation points