23,920 questions with .NET-related tags

Sort by: Updated
2 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,261 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,258 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:42:33.17+00:00
Albert Kallal 4,651 Reputation points
0 answers

ASP.NET framework 4.8 code for file uploding into Azure storage/container using FileUpload control

Hello For file uploading into Azure Storage / containers using the FileUpload control—preferably upon button click—ASP.NET framework 4.8 code is required. Thanks in advance Regards Chandrakant

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,697 questions
asked 2024-04-29T17:12:45.4533333+00:00
Chandrakant Pawle 61 Reputation points
edited the question 2024-04-30T03:37:51.5233333+00:00
PRADEEPCHEEKATLA-MSFT 77,261 Reputation points Microsoft Employee
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,261 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,258 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:33:10.6166667+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

How can I prevent window titles from overlapping in a Maui app with shell navigation and modals?

I'm developing a Maui app with shell navigation and modals, and I'm encountering an issue with overlapping window titles. When navigating from the main page to another page using shell navigation, a back button appears, causing the window title to shift…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-25T16:52:05.36+00:00
Ansh 0 Reputation points
commented 2024-04-30T03:29:22.38+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 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,261 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,258 questions
asked 2024-04-28T17:11:24.31+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:29:04.6233333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

how to implement logger and save logs files .net maui 8

how to implement logger and save logs files .net maui 8 using ChangeBox.Configuration; using ChangeBox.Handlers; using ChangeBoxMobileApp.GeneralServices; using CommunityToolkit.Maui; using MetroLog.MicrosoftExtensions; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T14:51:11.8266667+00:00
Ashutosh Mehere 0 Reputation points
answered 2024-04-30T03:04:24.3066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
0 answers

OutputCaching issue in .NET 8.0

Hi, I have implemented the Output Caching in ASP.NET Core 8.0 and deployed the same S3 bucket and Lambda function and its exposed through AWS API gateway. After implementation output cache and I have tested the local swagger API through postman first…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-26T11:48:11.7033333+00:00
Venkat 1 Reputation point
commented 2024-04-30T03:04:18.3066667+00:00
Venkat 1 Reputation point
1 answer

Using ApplyQueryAttributes Method with Constructor

How can I use the ApplyQueryAttributes Method of IQueryAttributable to retrieve a value for a parameter in my viewmodel? The problem is that the method I want to use the parameter for is in the constructor and ApplyQueryAttributes has not executed before…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T21:43:57.18+00:00
Tom Meier 80 Reputation points
answered 2024-04-30T02:59:51.8866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 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,381 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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,258 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
1 answer

Why WebBrowser doesn't show up in toolbox?

I want to make an own custom web browser so i looked for tutorial, when i at the insert WebBrowser extension, it's not shown up. I tried to reset and added it again, but it shows up "Added sucessfully but can't see or use in designer". I tried…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 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,614 questions
asked 2024-04-19T08:05:06.3166667+00:00
Ocean 0 Reputation points
commented 2024-04-30T02:44:34.6+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
3 answers

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,261 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,258 questions
asked 2024-04-29T17:12:15.2666667+00:00
Gani_tpt 1,526 Reputation points
answered 2024-04-30T02:40:19.3533333+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,261 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,573 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
commented 2024-04-30T02:09:05.0966667+00:00
Robert Barnes 71 Reputation points
1 answer

Upgrading to .Net 8 results in errors when referenced by a project targeting '.NetFramework=4.61'

I am using the upgrade assistant to upgrade the framework, but it's resulting in many errors. Is there any documentation available that explains step-by-step how to fix the errors that occur during the framework upgrade process?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
3 questions
asked 2024-04-29T22:40:37.7233333+00:00
Ziya Ganjili 0 Reputation points
answered 2024-04-30T02:08:21.9+00:00
Michael Taylor 48,311 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
commented 2024-04-30T02:07:42.6266667+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
1 answer

*.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,261 questions
asked 2024-04-29T15:37:56.6+00:00
iqworks Information Quality Works 216 Reputation points
answered 2024-04-30T01:59:39.2033333+00:00
Michael Taylor 48,311 Reputation points
1 answer

how to use signalr in minimal api?

can not use AddSignalR and I can use AddSignalRCore but there will be error. I created the ASP.NET Core Web API (native aot).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-29T13:33:56.15+00:00
mc 3,681 Reputation points
commented 2024-04-30T01:58:13.96+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
1 answer

Application exception when trying to get response from server

Register.cshtml 1. ``````xml <button type="submit" class="btn btn-outline-primary btn-sm ml-4 mt-4" asp-page-handler="GenerateOtp" style=" width: 150px;"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-29T07:21:39.1033333+00:00
Surya Chandra Mohan 0 Reputation points
edited an answer 2024-04-30T01:27:49.32+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
0 answers

why pushModalAsync not full ?

I use PushModalAsync the page is not full of the whole screen.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-30T01:15:51.47+00:00
mc 3,681 Reputation points
1 answer One of the answers was accepted by the question author.

Microsoft.Maui.Essentials packages

I have an razor class library and want to use Microsoft maui SecureStorage. In visual studio , NuGet interface, when select the latest Microsoft.Maui.Essentials packages, get the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 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,393 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-27T08:45:34.1866667+00:00
Qun Shen 60 Reputation points
accepted 2024-04-29T23:34:55.8866667+00:00
Qun Shen 60 Reputation points
2 answers

Localize application display name of iOS developed with .NET MAUI?

Display name is localized on android in "Resources\values" folder and it works as expected. However, I can't make it work with iOS. What has been done: My solution : In info.plist : In InfoPlist.strings : In csproj : When I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-25T23:11:33.74+00:00
Omar H 0 Reputation points
edited a comment 2024-04-29T23:01:10.4133333+00:00
Omar H 0 Reputation points