Is it true that .aspx (WebForms) is old technology and will be absent in all future asp.net versions?
I wonder that people say that WebForms is old/legacy/outdated technology, and that everyone should create MVC/.Core projects, which have no .aspx pages. Is it true that .aspx technology (WebForms) is not developed any more? I like visual design in…
How to remove html tags and line break plain text
I wish to re format the email html page text below to a plain text style in a legible presentation with line breaks where breaks are present. The regularExpression example i am following for simplification, does not seem to work? ```Note, i am…
How to send all listview databound data to itemcommand event
I would like to retrieve all listview bound data in code behind when i click a button. I have tried itemcommand event while using select command although i only able to retrieve the control bound data for this event. whereas i could do with retrieving…
Change Label Data In to QR code For Free
Hello This is my gridview data <asp:TemplateField HeaderText="NAME"> <ItemTemplate> <asp:Label ID="PN" runat="server" ForeColor="Black" Text='<%# Bind("process_name")…
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…
in asp.net c# Process.start not working after publish in IIS local host
code is System.Diagnostics.Process.Start(@"\web1\"); Error is Exception Details: System.ComponentModel.Win32Exception: Access is denied Stack Trace: [Win32Exception (0x80004005): Access is denied] …
Unclear exception captured
Hi, The exception captured is mentioning the error on 1st line of the event below. If I remark 1st line of the event, it will further mention the other parts that is after such "if part". I do not know why the exception is making the issue…
Azure B2C Authentication with OWIN for ASP.NET MVC Application - Login is not prompting for credential after successful Logout
We have an application that is built using ASP.NET MVC. We have implemented Azure B2C authentication with OWIN (Open Id Connect) framework. Login functionality is working fine for the first time however, we have another requirement that the application…
[Question] What is the root cause of Event Code: 3005 HttpException Request format is unrecognized.
I would like to learn and understand more about the error (HTTP Error 503. The service is unavailable) that I am getting when attempting to access the URL. When I checked my IIS, the application was in a Stop state. Did it crash or something? See below…
ASP.NET - xmlformatter
I have software that was developed for me. It is ASP.NET which I have no experience with thus the development. This was delivered a long while ago. I need to make changes and am struggling. This is a webservice with an api that you can call externally…
show financial year from date and to date
Hello I have two requriements 1) Current financial year Is Apr-2023 TO Mar-2024 In asp.net dropdownlist it has to show previous 3 years financial format as below for example on pageload Apr-2023 TO Mar-2024 Apr-2022 TO Mar-2023 Apr-2021 TO Mar-2022 …
How to send complex objects from one Razor page to another
I am working on an ASP.NET Core 6.0 Identity project. I want to pass an ApplicationUser object to the LoginWith2fs.cshtml page from the Login.cshtml page. The following is my code: Code in Login page: return RedirectToPage("./LoginWith2fa",…
Send email form Gmail account using C#
When sending an email using the followng code, I'm getting an error, I'm asking for your help. Authentication Required. Learn more at string adSoyad = txtAdSoyad.Text; string konu = "Koçaslanlar Web Konu başlığı"; string epostaAdresi =…
Getting 500 internal server error in IIS published site. Though it was working fine previouly.
Getting 500 internal server error in IIS published site. Though it was working fine previouly. HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred. Most likely causes: •IIS…
i get error Document was closed when try to display page number on pdf ?
I try to display page number at the the bottom of every page when export to pdf but i get error as below I get error iText.Kernel.Exceptions.PdfException: 'Document was closed. It is impossible to execute action.' on line int pageCount =…
How to implement SAML in asp.net , c#
Hello, I want SAML 2.0 implementation in asp.net application, Is there anyway I can do it natively in .net framework 4.5 without using any third party component. Any code snippets or link to any article ? Thank you maxmax
Gridview Column Total
Hello This Is My Aspx Page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %> <html> <head runat="server"> <title>Untitled…
How to implement reset password functionality in asp.net core for an user who didn't sign in using asp.net core identity
I am working on a legacy Asp.Net Web Forms application which is nearly 18 years old. It uses a simple form based authentication where the users enter their username/password and the user is authenticated by matching the username/password saved in the…
How do create a .NET 4.8 project when my only options are Core 6 and 7?
How do create a .NET 4.8 project when my only options are Core 6 and 7? Environment: Net Core 6 MVC, Visual Studio Community 2022 (64 bit), WIndows 11 If you want to improve, be content to be thought foolish and stupid... ― Epictetus Sometimes the…
Merge Gridview Row Based If Field2 Empty
Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %> <html> <head runat="server"> <title>Untitled…