16,207 questions
0
votes
0
answers
63
views
ASP.NET WebForms: Adding StaticFileModule Rule for XML causes “Duplicate Entry” error and breaks Index.aspx
I'm running into a specific issue with my web.config when trying to serve XML files.
As soon as I add this rule:
<add name="XmlFile" path="*.xml" verb="GET,HEAD"
...
Advice
0
votes
2
replies
55
views
Use items from local storage to pre-populate a webform
I am new to HTML, CSS and Javascript.
I am building a website that has a shopping cart feature and I am able to list my products, and and remove to the shopping cart and have the UI update the ...
0
votes
2
answers
64
views
My Ajax web method call in C# keeps showing an error: "401 Unauthorized"
I'm trying to call a simple static WebMethod in my ASP.NET Webforms page using jQuery Ajax, but it doesn't seem to be working. I've tried enabling anonymous authentication and other fixes suggested ...
Advice
0
votes
2
replies
55
views
Continuous scrolling grid (Like Excel)
I am looking for a freeware grid control for ASP.NET C# Webforms. It would behave similar to Excel.
The rows will be sequential dates, and the columns are my equipment numbers.
I want to be able to to ...
0
votes
0
answers
49
views
I need to work with legacy web forms apps, but VS22 doesn't like the percent syntax in .aspx pages. I've been ordered to not change the markup
Error message:
Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Other solutions tell one to modify the markup syntax in various ways, but I've ...
2
votes
2
answers
210
views
How do you add a choicefield dropdown to the form builder connectors settings section in sitefinity using FormsConnectorDefinitionsExtender
I'm trying to add a dropdown to the connectorsSettings section in the form builder using FormsConnectorDefinitionsExtender.
My field gets added but only the first choice is rendered and is rendered as ...
0
votes
2
answers
81
views
Correct Report not selecting date on Calendar change
I have an .aspx web form. When Ajax Calendar is changed, I'm not being able to capture date since there is no Selection_changed event firing. I tried to fire one, but that is also not working. Not ...
0
votes
1
answer
72
views
Disable keycloak username/password login option
I have integrated Keycloak v26.4.0 into a legacy .net 4.8 webforms app and enabled Microsoft as a provider.
This is all working fine, but I need to disable the Keycloak username/password option so ...
0
votes
0
answers
48
views
Problem with populating Fast Report via .NET code
I am trying to populate my fast report with dummy data using .NET code
DataTable dt = new DataTable();
dt.Columns.Add("name", typeof(string));
dt.Columns.Add("days", typeof(string))...
0
votes
0
answers
39
views
MSBuild - Publishing a WebForms project with references to other WebForms project
I have an ASP.NET webforms project (A) which references two other webforms projects (B and C) that I'm trying to publish with precompilation enabled from the command line with MSBuild using a publish ...
0
votes
0
answers
67
views
Use relative paths with URL-rewrite with additional path segments
I have this rewrite rule in web.config in my C# / .NET project:
<rule name="URL Rewrite Test" stopProcessing="true">
<match url="(rewrite|testrewrite)-([0-9]+)/?&...
1
vote
0
answers
74
views
Where in this ASP.Net identity source code is the auth cookie removed?
I am debugging into ASP.Net Identity 2.x assemblies since when I call Signout from an aspx Webforms page in an ASP.NET web site targetting .NET 4.8, the auth coookie never gets deleted and the user ...
0
votes
1
answer
56
views
ASP.NET: A label's for="..." associated with input's ID in a user control don't match
I have a following set up:
<asp:Label Text="User Name" AssociatedControlID="inputUserName" runat="server">
<uc1:UserName ID="inputUserName" runat="...
1
vote
1
answer
72
views
How to trigger the server-side event of a RadToolBarButton inside a RadGrid using the Enter key?
I have a RadToolBar (RadToolBar1) placed inside a RadGrid. When I use Tab to focus a RadToolBarButton and press Enter, the server-side event doesn’t fire (e.g., CommandName="InitInsert"). ...
0
votes
0
answers
54
views
IIS10 .NET Framework 4.8/Web Forms getting connection_abandoned_by_reqQeue and subsequent IIS Crash (Event Id 5011) suddenly, not sure why?
One particular page in our old monolith .NET Framework 4.8 webapp gets the connection_abandoned_by_reqQeue error thrown to the HTTPERROR log and immediately after IIS crashes and 5011 is logged, which ...
1
vote
2
answers
139
views
Iterate/Loop through a dynamically built HTML table?
I am currently upgrading a major MVS project and I am converting all the static GridViews to dynamically built HTML tables with Bootstrap CSS. The tables are created and look/function great.
However, ...
2
votes
1
answer
94
views
Request.Querystring shows HTTP Error 404.19 - Not Found
In C# and ASP.NET, I've been sending a value to another page via Request.Querystring for years, but just recently I've come against a page error that I cannot explain.
If I send a string that has
0X
...
0
votes
2
answers
70
views
How to get response errors from webforms WebMethod in production?
I'm working on a .NET Framework 4.8 project using Web Forms (the one with .aspx pages). During development, I used a WebMethod tasked with fetching and validating data, returning either a success (...
0
votes
0
answers
31
views
OWIN - How to check if user has already authenticated with external identity provider
We are implementing OWIN authentication to our legacy ASP.NET Webforms app through Keycloak. In Keycloak, we have two external identity providers. On our login page, there's two buttons as well ...
0
votes
0
answers
58
views
ReportViewer WebForms breaks when certain cultures are used in reports with datetime filtering
We've recently upgraded from standalone Report Viewer 2015 runtime to the NuGet package in our ASP.NET webapp (.NET Framework 4.7.2):
https://www.nuget.org/packages/Microsoft.ReportingServices....
1
vote
1
answer
65
views
Preserve selection on checkboxes in ASP.NET web application form submit
In my ASP.NET web application I have a form submit with checkboxes.
If in the first option 2 or 3 are selected, then a new questionnaire opens with 7 more questions. It's necessary to select all ...
0
votes
0
answers
48
views
How to fix CWE 80 Veracode for ltLinkDoc.Text in asp.net
I'm working on a program, but veracode is detecting that part of my code is vulnerable to XSS CWE 80.
Here is the snippet that is being flagged:
ltLinkDoc.Text =
'<script>$(window).bind("...
0
votes
1
answer
98
views
VB.NET webforms app on .NET 4.8 button loading twice
I have a very simple webforms page with a button and literal that when I click the button it logs data twice. I don't understand why it's loading 2 times.
<%@ Page Language="VB" ...
1
vote
0
answers
22
views
How to independently time user controls with MiniProfiler
I am trying to get some performance metrics for various controls (.ascx) that are on an ASP.NET webforms page. There's no problem with the whole page, but for user controls I can't get a good ...
2
votes
1
answer
143
views
Make the gridview using C# and ASP.NET
I have to make the gridview using C# and ASP.NET. The gridview shown below get data from this SQL Server 2019 table dbfiddle
I have searched numerous times both on google and in Stackoverflow threads ...
-1
votes
1
answer
69
views
Updating Web.config [duplicate]
I need help updating <appsettings> value in the Web.config, I keep getting the following error message:
A configuration file cannot be created for the requested Configuration object.
I've ...
0
votes
0
answers
75
views
I am getting the error: Session state has been disabled for ASP.NET. The report viewer control requires that session state be enabled in local mode
It is an ASP.NET web application written in C#.
This is happening when I use:
Server.Transfer("Reports.aspx").
I get this error:
Unhandled exception when executing the current Web request. ...
0
votes
0
answers
30
views
Add customer id or custom field to ClickPatrol from protection
We’re using ClickPatrol’s form protection.
To integrate it with HubSpot, we need to modify the main HubSpot JavaScript. Normally, this allows us to add custom inputs such as prefilled email addresses, ...
0
votes
0
answers
49
views
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Strong name signature could not be verified
Don't know why my Visual Studio / ASP.NET webforms app suddenly stopped running on my local machine. If I upload the compiled project to the dev server, it also starts to produce this error. The ...
0
votes
0
answers
33
views
sys.webforms.PagerequestManagerTimeoutException. signalr
i have implemented the SignalR into my project and i have 10k data to upload and it is time consuming because, the background task for insertion will goes on by i can't able to see the real progress
...
5
votes
0
answers
307
views
System.Net.Http.HttpRequestException: 'Received an invalid status line: 'HTTP/2 200 '.'
here is my code:
using HttpClient client = new HttpClient();
try
{
HttpResponseMessage response = await client.GetAsync("http://131.189.89.86:11920/SetupWizard.aspx/yNMgLvRtUj");
}
...
0
votes
2
answers
100
views
Bootstrap modal working proper but not with overlay component
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() ...
0
votes
1
answer
50
views
How can I get the selected Repeater LinkButton command value from a UserControl in the parent Page_Load in ASP.NET WebForms?
I'm working on an ASP.NET WebForms application where I have a custom UserControl that acts as a filter control. It contains a Repeater, and each item in the repeater has a LinkButton representing a ...
0
votes
1
answer
98
views
Dynamic radio button Issue in ASP.NET 4 using C#
I am trying to create a web form where a user uses some drop down information and then a container appears and the user has to select one of the two radio options OK or NOT OK.
The web form is created ...
0
votes
1
answer
94
views
TextChanged in VB.NET
My button is not getting enabled again.
I want to enable the my_btn button when the text in my_txt changes, but it's not working.
here's my code
<asp:Button ID="my_btn" runat="server&...
0
votes
1
answer
106
views
Async/Await questions
I'm using webforms and VB.net. I am calling Stripe to perform an ACH transaction. I have a standalone program that works, however when I put the code in my production application, the flow is not ...
0
votes
0
answers
52
views
How to handle Launchdarkly Feature Flags for existing c# Enum Feature Modification
I've been implementing Launchdarkly within a old .net framework webforms application. Things were going well until I came to this issue and I'm not sure the best method to mitigate it.
Problem:
I ...
1
vote
0
answers
40
views
Current signalingState (stable) is not valid for receiving response in WebRTC
In this code I am using Signal + WebRTC to live video. Brief description: The host is live streaming his video to all viewers and viewers when they click on the link will see the host's live video. ...
1
vote
1
answer
138
views
Pagination is not Showing on Gridview in ASP.NET and C#
My markup is:
<asp:GridView ID="grvGroup" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True"
PageSize="10" ...
0
votes
1
answer
199
views
Trying to understand SAML2 authentication using SystainSys.Saml2 library (ASP.NET WebForms)
I'm trying to integrate the SustainSys library as part of a single-sign-on integration I'm doing for an older .NET Framework (4.8) WebForms app. I'm using the HttpModule instructions located here: ...
0
votes
1
answer
95
views
Change URL project IIS ASP.Net
I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change this because, for security reasons, an application does not allow testing locally, as it ...
0
votes
1
answer
91
views
ASP.Net Visual Studio IntelliSense and Symbol Recognition Problem
(https://i.sstatic.net/gwpy5b6I.png)
(https://i.sstatic.net/AjNqkJ8J.png)
I am experiencing an unusual issue with one of my projects in Visual Studio. This problem does not occur in any of my other ...
0
votes
0
answers
56
views
Why does my webforms website presents a blank page at login and how do I recover from this issue?
My webforms website has started to experience the following exceptions:
StackTrace 12/03/2025 00:00:38
Object reference not set to an instance of an object.
Source File: /UserLogin.aspx?ReturnUrl=%...
-1
votes
1
answer
61
views
How to select a row in a gridview nested in an update panel and load that data into another div location on same page
As the title says: I was to be able to do a search bring the search data back into a gridview that has clickable rows and once a row is clicked i will need to grab some info from that row and place it ...
0
votes
0
answers
37
views
Android webview javascript interface being removed on webforms partial postback
I am trying to interact with a WebForms site via a WebView inside an Android application.
I need to include a javascript interface to be able to send messages to the webview. However whenever a page ...
0
votes
0
answers
35
views
System.Web.HttpApplication.GetFactory(String type) throwing an error. How to discover exactly what object is null?
StackTrace 3/9/2025 11:15:55 AM
Object reference not set to an instance of an object.
Source File: /UserLogin.aspx?ReturnUrl=%2f
Stack Trace:
at System.Web.HttpApplication.GetFactory(String type)
...
0
votes
0
answers
152
views
YARP not forwarding links in Web Forms to Blazor migration
I am using YARP to migrate a legacy Web Forms application to Blazor (8.0) one module at a time (Strangler Fig pattern).
My new Blazor application is running on port 5017. The legacy app is located on ...
0
votes
0
answers
35
views
ASP.NET Webforms updatepanel textbox only works on lost focus on text changed
I have this webforms application that is giving me trouble understanding what I am doing wrong. I basically want that when a user changes the value of a textbox, it triggers an OnTextChanged event ...
0
votes
1
answer
88
views
How to call vb.net function inside form action attribute? [duplicate]
This is what I'm trying to implement:
<form id="form1" runat="server" action="<%= AllowedURL() %>">
The other variable is without =
<form id="form1&...
0
votes
0
answers
67
views
How can I batch print a page that has multiple tabs?
To anyone that can help me:
I have been trying to batch print a page that has pagination functionality.
Each page needs to load to properly display the page to print.
I was using window.print, but ...