3,419 questions with ASP.NET tags

Sort by: Updated
2 answers

Pagination not working properly in ASP.NET Core 2.1 app

Hi guys, I had implemented pagination using IPagedList with model which was successful for my ads classifieds website. This time I needed to apply with ViewModel as several models needed in this view and used StaticPagedList as it wasn't working with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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.
10,656 questions
asked 2024-07-27T15:06:16.6233333+00:00
Farid GN 1 Reputation point
answered 2024-07-28T00:57:37.21+00:00
SurferOnWww 2,491 Reputation points
1 answer

alternative method for database connection in .net core web api

In .NET Core Web API, linking to and managing an existing database is more complex than in .NET Framework. I need a way to add existing tables to models and a simple method to connect, update, and alter tables. Any straightforward approach?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
19 questions
asked 2024-07-27T11:53:28.1333333+00:00
Mahadevi Thirumagan 0 Reputation points
answered 2024-07-27T14:33:58.6966667+00:00
AgaveJoe 27,696 Reputation points
4 answers

could not load file or assembly'Microsoft.data.sqlclient'

how to solve this error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,365 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.
10,656 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
commented 2024-07-27T06:36:37.1666667+00:00
John Dyson 0 Reputation points
4 answers

Dynamic Folder Names with AjaxFileUpload

I'm attempting to replace the upload /download pages of our very old ASP classic web site with a web forms app. Keeping as much of the back end stuff the same is important as there is code (mostly VBA in Word, Excel and Outlook) in our daily operation…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-18T17:04:20.35+00:00
Ken Krugh 116 Reputation points
commented 2024-07-26T21:17:55.1+00:00
Ken Krugh 116 Reputation points
3 answers

How can I have an interactive map in ASP.NET?

Hi all. I have an ASP.NET project that needs to display a map image. The map contains areas that show a status of either "busy" or "available". I need the map to show this status with an icon, a small image that represents either of…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-25T15:10:53.15+00:00
Saga 426 Reputation points
answered 2024-07-26T19:28:40.0666667+00:00
EngCream 0 Reputation points
4 answers

*I cannot call an aspx file from within an MVC5 web app controller method

     Hi, I have two MVC5 webapp projects.     Proja references projb.     When proja instantiates a new projb object called projbObj.     I call a method from projbObj called DisplayLoggingMaint().     But when I debug this, the debug stops at the call…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-22T19:34:38.8933333+00:00
iqworks Information Quality Works 276 Reputation points
edited a comment 2024-07-26T06:00:51.9533333+00:00
SurferOnWww 2,491 Reputation points
1 answer

403 Forbidden - Links in ASP.NET code behind

I am building my website in ASP.NET Web Forms with User Accounts. I have just the example template that comes with the ASP.NET webforms and I'm going through trying to connect all the 2FA ans SendGrid peripherals. I would really like to read the…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
661 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-23T00:11:39.3533333+00:00
Jeremy Winslow 0 Reputation points
commented 2024-07-26T05:49:38.47+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

About MVC support please

<div class="row" id="education-seminar-forms-BilgisayarBilgi"> @for (int i = 0; i < Model.tBL_BilgisayarBilgisis.Count; i++) …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-19T17:44:19.46+00:00
kadir 60 Reputation points
commented 2024-07-26T05:48:17.7+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
0 answers

How to fix error creating control - asp:label index was out of range. must be non-negative and less than the size of the collection. parameter name: index

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-25T14:32:31.58+00:00
Nivash 0 Reputation points
commented 2024-07-26T01:33:23.2266667+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
0 answers

Microsoft.AspNet.OData NuGet Package Upgrade Causing delay in the Functionality

Hi, I have upgraded Microsoft.AspNet.OData NuGet Package in our application from 7.5.14 to 7.7.5 and since then it is causing delay in few of the Api calls in the application. Before upgrade everything works fine without causing any delay. The scenario…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-06-18T07:10:11.82+00:00
AKHIL TALLURI 0 Reputation points
commented 2024-07-25T13:07:01.8566667+00:00
AKHIL TALLURI 0 Reputation points
4 answers

ASP.NET Core JWT Authentication Returning Unauthorized(invalid-token 401) for Authenticated Requests in Controller Actions

Hi everyone, I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests to other controllers requiring…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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.
319 questions
asked 2024-07-24T16:02:32.3133333+00:00
Antonio Simonetti 0 Reputation points
commented 2024-07-25T10:19:18.5866667+00:00
SurferOnWww 2,491 Reputation points
1 answer

Azure app service reverts to previous version

I have blazor web app I'm deploying to Azure App service using VS2022 Preview publish feature. I have upgrade my project target framework to .NET 8. And I have my publish setting target framework to .NET 8. However after publishing the app the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 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,141 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
asked 2024-01-29T22:02:12.3066667+00:00
JuwonPark-6692 5 Reputation points
edited a comment 2024-07-24T16:47:05.44+00:00
sabbir saiyed 0 Reputation points
1 answer

I have been encountering this issue for days, and the 'app console .NET Core' package is missing in the project creation section. I would appreciate a quick response. If you can connect remotely and fix it, that would be even better. Thank you

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 questions
asked 2024-07-10T17:14:04.3+00:00
Tufan Bulut 0 Reputation points
commented 2024-07-24T07:35:18.0166667+00:00
Tianyu Sun-MSFT 29,451 Reputation points Microsoft Vendor
1 answer

DataTable values are getting the default values(Initially loaded values) when we click on the dropdown icon of DataTable in asp.net C# using jQuery

I'm very new to this DataTable logic implementation concept and I have append the data to the DataTable and append successfully and in that DataTable controls I have written some event logic (ex:- dropdown onchange and textbox oninput events) and those…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
942 questions
asked 2024-07-22T07:45:31.2566667+00:00
Ashok Kumar 201 Reputation points
commented 2024-07-23T08:40:33.61+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
2 answers

anti-forgery tokens implementation in asp.net web api

Can any one help me with anti-forgery tokens implementation in asp.net web api and AngularJS. how do we maintain the forgery key in web api to validate the key for every request. Please provide the full example.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-19T13:35:25.67+00:00
Bala Subrahmanya Gopal Jataprolu 0 Reputation points
commented 2024-07-23T06:18:51.57+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to invalidate ".AspNet.Cookies" cookie on logout?

I have a .net application deployed to Azure. A penetration test finding called "Session Not Invalidated After Logout" is found. When an API Get request is sent along with .AspNet.Cookies while user is logged in, a successful response is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-16T11:05:41.7266667+00:00
Abhishek, Burra 30 Reputation points
accepted 2024-07-22T08:42:14.65+00:00
Abhishek, Burra 30 Reputation points
2 answers

how to pass C# DataTable to JQuery DataTable

I am trying to send data from a C# DataTable to a Jquery DataTable, but I am not sure how. Here's my code, but it is not working. public ActionResult StudentList() { TestViewModel tvm = new TestViewModel(); List<Student> students =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
942 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.
10,656 questions
asked 2024-07-21T12:00:18.0066667+00:00
Saeed Ahmad 20 Reputation points
commented 2024-07-22T08:00:29.85+00:00
Saeed Ahmad 20 Reputation points
1 answer

MVC excel to pdf

public ActionResult Excel2(int? id) { List<TBL_Table1> FileData = db.TBL_Table1.Where(x => x.Tableid == id).ToList(); string DosyaAdi = ""; try { ExcelPackage.LicenseContext =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-18T06:35:35.71+00:00
kadir 60 Reputation points
commented 2024-07-22T01:22:21.4633333+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

validate item in entire gridview to check excess Quantity

Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="yyy.aspx.cs" Inherits="yyy" %> <html> <head runat="server"> <title>Untitled…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-10T08:38:03.7233333+00:00
RAVI 1,056 Reputation points
commented 2024-07-22T01:20:27.5766667+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

get user ip address not deployment system ip address

Hello I want to get and show in Label1 user system name and ip address not deployment machine ip address how to get that i tried this but its taking depoyment ip address i want user machine ip string hostName = Dns.GetHostName(); …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
asked 2024-07-10T07:54:33.8233333+00:00
RAVI 1,056 Reputation points
commented 2024-07-22T01:19:59.1466667+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor