3,263 questions with ASP.NET tags

Sort by: Updated
0 answers

ASP.NET button control not able to make disabling in panel control using c#

i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-30T18:21:01.5633333+00:00
Gani_tpt 1,546 Reputation points
commented 2024-05-01T21:44:38.82+00:00
Albert Kallal 4,651 Reputation points
1 answer

*System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing

Hi, Why my Polly Timeout handler not working? I still getting: "System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2023-11-07T09:14:10.64+00:00
winanjaya 146 Reputation points
answered 2024-05-01T17:24:47.3066667+00:00
William Saylor 0 Reputation points
0 answers

Asp.net MVC renders 2 "form action" statements for the same form when in responsive mode

ASP.Net MVC VS 2022 Windows 11 App runs fine in desktop mode. This line: <@using (@Html.BeginForm("SubmitForm", "Home", FormMethod.Post, new { id = "subform", verify = "Y" }))> is generated correctly…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-29T18:06:54.7466667+00:00
Jean Vallee 21 Reputation points
commented 2024-05-01T09:17:14.9266667+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

How do I add a CAPTCHA to a web site written with ASP.NET/VB

A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,575 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
commented 2024-05-01T05:20:18.6633333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

ASP.NET - The specified network password is not correct - X509Certificate2

I have a .NET web application where trying to import the certificate using the "X509Certificate2". While importing, getting the "The specified network password is not correct.". The certificate is password protected .pfx file and I'm…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-30T12:08:12.77+00:00
Nabeel Farooq 0 Reputation points
answered 2024-05-01T03:35:11.9833333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
2 answers

*.net referenced dll is not seen with a using statement

Hi, I have a project called MBSAnalysisMVCWebApp which is a web app. I reference MBSAnalysisMVCWebApp from my main MVC project called Mbsa. But when I try a using statement, It says MBSAnalysisMVCWebApp cannot be seen?  The MBSAnalysisMVCWebApp.dll…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-29T15:37:56.6+00:00
iqworks Information Quality Works 216 Reputation points
answered 2024-05-01T02:34:04.56+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Scriptmanager alert not displaying properly in same page

I am doing some simple screen add functionality and after end of saving, i am using scriptmanager.RegisterStartupScript() for save message. when i run the program, the alert have not been throwing properly. it showing same page but, without controls like…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-29T17:12:15.2666667+00:00
Gani_tpt 1,546 Reputation points
accepted 2024-04-30T17:07:12.91+00:00
Gani_tpt 1,546 Reputation points
3 answers

How to view/show image from file server path on button click

i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,546 Reputation points
answered 2024-04-30T09:33:46.47+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
3 answers

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,546 Reputation points
commented 2024-04-30T03:33:10.6166667+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to calculate years from two different date in ASP.NET C#

I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-28T17:11:24.31+00:00
Gani_tpt 1,546 Reputation points
commented 2024-04-30T03:29:04.6233333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
2 answers

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,387 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
commented 2024-04-30T02:54:25.35+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
5 answers One of the answers was accepted by the question author.

Using MS Graph to send email from singe predefined/pre-set mailbox within .net web application

We need our application to send emails via MS Graph using a set single mailbox. I have the following, but this is not working, with the following: 'Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown'. Digging into the details…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,618 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2023-06-05T11:36:52.11+00:00
Julian Cram 25 Reputation points
edited a comment 2024-04-29T15:27:38.1266667+00:00
Trevor Westin 26 Reputation points
1 answer

.Net core deployed application not supporting Chinese font in PDF.

I have chines font in my code when the app is deployed in app service and there is a logic to download the PDF file with the Chinese font, but the font is not visible.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,902 questions
asked 2024-04-29T06:30:59.03+00:00
Deepak Ramesh (SX/EDA2) 0 Reputation points
edited an answer 2024-04-29T09:05:24.9833333+00:00
JasonPan - MSFT 4,286 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

can I upgrade my system.web.mvc from 4.5 to 5.0

Hi, I have a couple of related threads about this out there, but it is cluttered, so i created this one I am initially using vs2019. I have an MVC project called Mbsa. It is my primary project. I am using the runtime version v4.0.3.319. It uses .net…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-25T21:44:22.7566667+00:00
iqworks Information Quality Works 216 Reputation points
commented 2024-04-26T15:22:00.5533333+00:00
iqworks Information Quality Works 216 Reputation points
1 answer

Part of this app has been blocked IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe

When launching an ASP.Net web application on a Windows 11 system with Smart App Control On, I'm getting the below toast notification. Part of this app has been blocked: IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe which doesn't…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,193 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
339 questions
asked 2024-04-25T03:31:37.73+00:00
Pradeep Viswanathan 0 Reputation points
answered 2024-04-26T10:10:26.9233333+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
0 answers

I'm trying to read excel from sharepoint by using asp.net but its giving me following error fail: PowerBi_Report.Controllers.HomeController[0] An error occurred while processing the request: The remote server returned an error: (401) Unauthorized.

I have all the permissions for excel present in sharepoint still I'm getting same error can someone please help me out on this I'm pasting my code below using System; using System.Diagnostics; using System.Net; using Microsoft.AspNetCore.Mvc; using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
edited the question 2024-04-26T02:57:44.18+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to fix vite error in Angular ASP.NET project?

I have started my Angular ASP.NET project and ended up with the following error, just want to find out how to fix it: Thank you!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,387 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-24T03:07:40.3233333+00:00
Yardley Estiverne 20 Reputation points
commented 2024-04-25T17:49:06.5466667+00:00
Yardley Estiverne 20 Reputation points
2 answers

Maui mobile app using Signalr is encoding hub name in ConnectionData parameter on iOS 17

We have a mobile app in production built using Maui. The server running the api is it connecting to uses .net framework. There are issues connecting to signalR from iOS17 devices. From debug we can see the following: iOS 17 device sets the connectionData…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,889 questions
asked 2023-09-27T11:39:11.9033333+00:00
T_TDSi 10 Reputation points
edited an answer 2024-04-25T12:14:43.6133333+00:00
Richard.R 0 Reputation points
3 answers One of the answers was accepted by the question author.

Unable to submitting the form using jquery post request like a form submit

Using Form Submit redirecting page from one page to another page and the page is redirecting successfully but the parameter value getting length 0(if array) or null(if string) based on the data passed on param. To achieve this concept I have used the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2024-04-24T11:36:47.15+00:00
Ashok Kumar 161 Reputation points
commented 2024-04-25T11:11:52.8333333+00:00
Ashok Kumar 161 Reputation points
1 answer

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
edited the question 2024-04-25T06:42:47.42+00:00
Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor