All Questions
Tagged with webforms visual-studio
241 questions
0
votes
1
answer
84
views
Could not load file or assembly System.Runtime.Extensions
I've tried reinstalling the package from nuget (mutiple versions)
I've tried reinstalling visual studio 2022
The Project is running on .net 4.7.2.
I tried switching to .net 4.8
I've also tried adding ...
0
votes
1
answer
57
views
Asp.Net Web Forms designer: how to auto-apply camel casing to new attributes and tags
After reinstalling Visual Studio 2022 and importing my old settings, I am running into the problem that tags and attributes are not formatted using camel case.
When typing, the suggested attributes ...
-1
votes
1
answer
61
views
Debugger is not moving from one web application to a service (which is in another web application)in Visual Studio
I am using 2 web applications. Web application1 is taking data from web application2. But while I debugged web application1, the debugger is not hitting web application 2 (it goes to next line in ...
0
votes
2
answers
57
views
ASP.NET run issue
I'm having an issue with my ASP.NET webforms project in Visual Studio 2022 (using .NET Framework). When I initially create the project, the run button shows the browser name and runs smoothly.
However,...
0
votes
0
answers
97
views
Create New Events not autopopulating in Visual Studios
I know this may be a dumb question but my IntelliSense is working but not event arguments aren't auto populating. I took a screenshot of someone else's working to better explain. Not sure where to ...
0
votes
1
answer
114
views
How to convert an ASP.NET Webforms user control to a DLL
I have an ASP.NET Webforms app where I'd like to add some HTML as a user control (Mycontrol.ascx) generated from another Webforms project. I've tried following the (rather old) articles Turning an ...
0
votes
0
answers
55
views
Multiple WebForms Contexts causing compiler errors after adding csproj
I have an existing .NET 4.8 Web Forms site that utilizes an app_code/ folder for storing some source files.
To provide improved intellisense in the C# source files, I added a missing .sln and .csproj ...
0
votes
1
answer
129
views
Adding a new Web Form with Master Page causes errors BC30002 and BC30456 in my project
This is not a new project. It was originally started in VS 2019, now working in VS 2022. I have tried both environments with this and still get the same errors.
This is a ASP.NET/VB.NET application. ...
0
votes
0
answers
321
views
Data provider "Microsoft.Data.SqlClient" is not supported in Visual Studio 2019
I have been working on an ASP.NET webform project, which is recently upgraded to .NET Framework 4.8.
I have been switching between Visual Studio 2022 and Visual Studio 2019.
Issue occurs only in ...
0
votes
0
answers
63
views
Resource keeps creating another designer file after adding new item
Everytime i add some string in my resource file, when i save it creates another designer file
how to stop this?
0
votes
1
answer
5k
views
How to create ASP.NET Web Forms project in Visual Studio 2022 using Empty template?
All of the tutorials that I have seen use ASP.NET Web application (.NET Framework) template in Visual Studio to create webforms projects. But Visual Studio 2022 does not come with ASP.NET Web ...
0
votes
1
answer
96
views
Subject: Modifying Control Properties in ASP.NET Web Forms from a Separate C#
Subject: Modifying Control Properties in ASP.NET Web Forms from a Separate C# Class
Body:
Hello everyone,
I am working on an ASP.NET Web Forms project using C#. I have a scenario where I need to ...
0
votes
1
answer
52
views
Issue in Visual Studio when doing activity in aspx page
When I select any option from Dropdown list debugger getting hit each time
This is the place where debugger getting stop, but there is no breakpoint added
This issue is happening each time I select ...
0
votes
1
answer
174
views
IIS Express - Inappropriate Hot Reload / Refresh / Postback
I am running IIS Express and experiencing an inappropriate postback when:
I merely place my cursor in the URL field in the browser; and
I start to edit the URL (like changing one character).
I'm not ...
0
votes
1
answer
125
views
Asp.net webform site displays "Localhost Refused to connect" when Redirecting to next Page
I have been running an ERP on my localhost, and it was working fine until I encountered a Just-in-time debugger dialog in Visual Studio. When I cancelled the dialog, it caused my login session to time ...
0
votes
1
answer
132
views
Is there anyway to have code-first migration in a web forms website?
When I create a new solution with "ASP.NET Web Forms Site" I can't enable or add any migrations.
here's the error that I get when I use "enable-migrations" or "add-migration ...
0
votes
1
answer
656
views
Project file was unloaded error when making a local copy of production site
The site uses ASP.NET Web Forms and I made a local copy of the production site. When I open the solution, it says "The project file 'c:\Users\path\path\path' has been moved, renamed or is not on ...
0
votes
1
answer
1k
views
Creating dlls in Visual Studio publishing process
To publish a completed C# Asp.NET Web Forms project, I perform the publish process successfully, but 4 .exe files are created under the roslyn folder, they are not accepted by the hosting company. How ...
0
votes
2
answers
875
views
Visual Studio not generating WebForms Designer Files
We've got a bunch of legacy WebForms projects that we've just upgraded to use SDK style .csproj files so at least that matches what we've got everywhere else until we can migrate away from WebForms (...
0
votes
0
answers
101
views
How can I place a pause in an ASP.NET Web Application during page rendering to wait for a sub containing a SQL query to complete execution?
I have an ASP.NET application that works fine on the deployed server, but when I run it from a remote development computer connected to the production database, it displays the error: "Object ...
0
votes
1
answer
156
views
How to convert website using webform to .net mvc core [closed]
Now i have website TDMWATER
Microsoft ASP.NET
4.0.30319
Some time it very slow , downtime , every one week i must rebuild source code and restart server to reslove this problem so i decided upgrade ...
0
votes
1
answer
2k
views
Web.Config Transform not working in Visual Studio 22
I am trying to get Web.config transformation working in VS 2022 withing a WebForms application. The goal is to enable transformation on BUILD.
I have followed this guide (among others): https://gist....
1
vote
2
answers
920
views
Visual Studio 2022 ASP.Net WebForms: Generate Local Resource option missing
It seems that with the latest VS 2022 update (and the new HTML-designer that comes with it), the option to generate a local resource file is missing. I'm talking about this menu item under Tools:
...
0
votes
1
answer
484
views
Multiple Columns and multiple tables from datasource in ListBox?
I am using Visual Studio and creating an ASP.NET WebForm using C#.
I have a ListBox that needs to have multiple columns populated from multiple tables from a SQL Server database. Ex, a listbox that ...
0
votes
1
answer
414
views
ASP.NET - Content, Styles, Scripts, Images, Resources folders are not getting copied over to Publish folder while Publishing (for deployment)
I am a new-ish solo developer in a company, and I am trying to deploy an existing ASP.NET website to Dev and Prod environments. I think this is a WebForms project (I am not sure how to figure out what ...
2
votes
1
answer
4k
views
Unable to drag and drop or edit toolbox elements in Visual Studio Community Edition 2022 for ASP.NET Web Forms (C#) in Designer View
I have followed the approximate steps of this video in an attempt to create an ASP.NET Web Form.
Inside the video, the programmer was able to directly edit text within the designer view, as well as ...
0
votes
1
answer
352
views
Is there a quick way to change the database connection name in all project files in asp.net Visual Studio?
Is there a quick way to change the database connection name in all project files in asp.net Visual Studio?
0
votes
1
answer
591
views
Save registration page data in SQL and validate and redirect to home page in Visual Basic (Visual Studio 2019)
I have an ASP.Net WebForms website with a login and registration form. I to save data in the local database when the user submits the registration form and validate when the user logs into the website....
-3
votes
1
answer
236
views
How to edit CSV data in C# like 1234567 to 123-4567? [closed]
Im trying to edit a postcode data which comes as for example 1234567 and i want to put a dash between 123 and 4567 (e.g 123-4567) is it possible to do this within C# without editing the csv file ...
0
votes
1
answer
257
views
LocalReportExtension, how to print in Monochrome rather than color?
Im trying to print a RDLC report in C# however when the user presses print, visual studio prints the page in color which is not cost efficient.
I use a localreportExtension class to print the page ...
0
votes
0
answers
89
views
Unable to create data reader for dataset'Barcode1' : ReportingProcessException
Im creating a web form app where the user clicks the print button and instantly prints the RDLC file connected to the BtnOnClick method in form but it gives me this error
ReportProcessingException: ...
4
votes
2
answers
11k
views
How to add a WebForm file in VS2022?
I have an old WebForms web application project, and would like to add a WebForm to it.
Here's what I do:
Solution Explorer > Right Click > Add > New Item
There's no Web Form mentioned there. ...
0
votes
1
answer
73
views
How Can I replace Files With Regex?
I have an aspnet webform application and I have more than 1000 server.transfer like below
Server.Transfer("~/General/Personnel/List.aspx");
I want to add /V2 after "~" in all ...
0
votes
1
answer
85
views
How Can I exclude some files in visual studio finding?
I have a project in asp.net web form and I want to search all files which contains "~/Products" with ctrl+shift+f but I want to exclude a file which is Server.Transfer("~/Products"...
0
votes
1
answer
394
views
ASP.NET Web Form - SQL to CSV Output extremely slow
I used this guide to build an ASP.NET Web Form in VS 2019 with a button that executes a stored procedure on my SQL server, and writes the results to a CSV file for download through the browser.
It all ...
0
votes
1
answer
507
views
In Visual Studio 2022, using ASP NET Webforms how do I fix element is not a known element?
Unable to use intelli sense and the warning on almost all lines. Visual Studio does not recognize not even a TextBox.
0
votes
1
answer
794
views
Use image or checkbox to include with text with asp:ListItem in Webforms and C#
I have been given some Html pages that require linking with code behind code in a WebForms website. The code doesn't appear to use any controls but a lot of Css classes. I've tried a number of ways to ...
0
votes
1
answer
687
views
How can I create request ID in POST API and log it
As title mentions: How can I create request ID in POST API and log it
I am sending POST request to API and getting response but API do not reply any request ID, is there a way I can have request ID ...
0
votes
1
answer
3k
views
ClosedXML reading empty cell and increasing count
I am reading excel file with ClosedXML,
I have data in 1 single Column A1.A2.A3... all A columns,
When I open excel and delete A2.A3 and keep only single value in A1 and save excel,
after that when I ...
0
votes
1
answer
527
views
ClosedXML Webform - foreach loop looping twice
So my problem is when I am trying to read excel file it prints output correct in gridview once, but when I try to store the row[cells] - only into an String variable using serials += row[cells] it is ...
0
votes
0
answers
3k
views
CS0103: The name does not exist in the current context
Here is the main form where I have to take user inputs. I have used Design option to create the form in visual studio.
WebForm1.aspx
<%@ Page Language="C#" AutoEventWireup="true"...
0
votes
1
answer
321
views
In VIsual Studio 2019, is there any way to view references of some method or property in ASPX files?
If I have a method or property defined in a class, then Find References and CodeLens only display references to that method or property in class files; they don't display references in ASPX files. Is ...
3
votes
1
answer
2k
views
Intellisense not working properly for .aspx files in Visual Studio
Recently, my intellisense stopped working for asp and user controls alike.
I start typing <asp: which should bring up a dropdown menu with suggestions like <asp:Textbox and <asp:Label, but ...
0
votes
1
answer
1k
views
Web Forms ASPX designer files not updating
I have the following situation:
I have a few aspx pages, but some pages' designer files do not update when adding controls, but some do. I am using git, and this problem exists only on 1 repository, ...
0
votes
1
answer
29
views
Webforms Error shows TWO projects although solution shows ONE project
In a VS-2019 webforms solution I get this error that shows TWO projects although the solution only has ONE project.
Severity: Error
Code Description : BC30456 'prpPageCaption' is not a member of '...
0
votes
1
answer
42
views
I want to make a redirection webform2 that shows a message based on the gender chosen in radiobutton in webform1
This is the webform1 code and I made a string called pass to store the text in. What should I do in webform2 to display the message based on the conditions?
protected void Button1_Click(object sender, ...
0
votes
1
answer
166
views
VS 2019 WebForms VB-project tableadapter not defined?
I am building a web-forms app in VS-2019. I am trying to use code from VS-2017 that worked with the tableadapters in the schema xsd file. I copied the xsd and xss files into the VS-2019 project. I ...
0
votes
3
answers
422
views
Project Type GUID for ASP.NET Website project
My ASP.NET solution has a Website project (with no csproj file). I need to know the project type GUID. How do I find it?
0
votes
1
answer
123
views
Visual Studio 2017+ with "new style project" - ASPX files not generating .designer files
I took my WebForms project which was initially build using Visual Studio 2008 (!) and have converted it over to the "new style" Visual Studio project files, which has tremendously reduced ...
0
votes
0
answers
66
views
CS1061 error on linked button in bootstrap webform
I am new to webforms and am getting an error while trying to compile webform1.aspx which is a form next to the site master form:
I am trying to get in my headers and footers and the fixed set of ...