image not displaying in visual studio .net 8 cshtml
I created a simple .net 8.0 web application. I put what seemed to be a simple <src> statement, but the image does not show up on the browser. The image is in a folder called “images” The image is coded here. when i hover over the image it…
How to arrest '.axd' files from script level/Web.config/IIS & how to set Referrer Http header in Sever Side/Web.config
Hi Team, 1: We are using Script manager for 'Alerts & Js' because of this we are identifying ScripResource.axd & webResource.axd files while running the application. 2: We have a created Rule for 'Referer HTTP' header in Web.config file ,…
allow only one system to login the aspx page
Hello I have hosted my aspx pages in serevr its accesing using local ip 192.168.xx.x for example i have abc.aspx it should allow only one system and one login to access if any other same user login and coming from difference browser or system has to…
Migration from .Net Web Application (Framework 4.7) into .Net Core Web 8.0
Hi, I would like to migrate my application from .Net Framework 4.7 to .Net Core 8.0 as I would like to have my application in the latest version. My application is in MVP architecture and web pages are aspx (UI part). Is there any easy way to migrate it…
Converting ASP.NET MVC Framework csproj Question
Hello - I have a few different ASP.NET MVC projects that build on .NET Framework 4.8 I want to convert to the new SDK style csproj format. I was able to convert it over fine, but once I try and publish the project, all of the DLL files are not located…
How to Change the Password for the Messaging System in MSSQL ASPX?
The issue at hand involves a lost database containing millions of data points, with only a ten-year-old backup available. The automatic email sending feature, essential for operations, has stopped working, possibly due to a password mismatch for the…
Hide IIS version when user gets error HTTP Error 404.0 - Not Found and view source file from webbrowser
When user load the page with wrong url or type wrong path to the file in url then user get error with below message in web browser. " HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is…
Error in Visual Studio 2022 -- ASP.NET Framework 4.8 XSD Code Generation
An ASP.NET Framework 4.8 VB Web Forms Site is generating the following error: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown. This error occurs after creating the .XSD file in the designer and adding a…
Loader animation issue in bootstrap while click save button
I'm using asp.net page and it contains various controls. i used bootstrap navigation for menu and signature. i have use various scripts for bootstrap designing and dropdown search box. everything is working fine except loader animation. When i click…
How to use ASP.NET Code Behind to launch FileUpload
Is it possible to include an asp:Button with OnClick=DoFileUpload_Click, and the method runs whatever to launch the FileUpload class?
HttpClient // Timeout // The remote name could not be resolved
Hello, The remote name could not be resolved using (HttpClient client = new HttpClient()) { client.BaseAddress = new Uri(System.BaseAddress); client.Timeout = new TimeSpan(0, 0, System.Timeout); public void Exception(Exception ex, string…
How to sanitize a legacy asp.net file (Aspx) infected with malware
Hello, I created an Asp.net website about 10 years ago, and it is hosted on GoDaddy.com. If I google search the domain name of the website it will come up with the name of a generic drug. I can access the website, it's just that the google search…
Publish Error
Copying file Content\app_content\assets\libs\datatables.net-buttons\node_modules\datatables.net\js\jquery.dataTables.min.js to…
Get Absolute URL in Blazor class
Hello, I have a class inside the Services folder. It contains a LogError(Exception ex) method in which I need the absolute URL in order to get the requested page. However, I am unable to access the HttpContext.Request.Url or any other method/extension…
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…
I have a two procedure, first one for Insert and the second one for update, When I update the table using "prcImage", it doesn't update. Can anyone help me to solve this. I provide the table and store procedures check it and also I provide the .cs Code
This is my table CREATE TABLE [dbo].[UserProfile] ON [PRIMARY] This is my 1st Store Procedure ALTER proc [dbo].[prcDataSubmit] @fname varchar(20), @lname varchar(10), @contact char(15), @password varchar(50) as begin declare @yy char(4) declare @mm…
resource cannot be found issue
I have an entity framework app I am rehabilitating. all the routes work just the one labeled details fails with the error below. Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are…
Table border issue
Hi, What is wrong below? How to correct it?
I can't find ASP.NET Web Application (.NET Framework) with c#
Hello I want to use ASP.NET Web Application (.NET Framework), and I have downloaded Visual Studio Community 2019 v16.11.3, and i have clicked the ASP.NET and web devleopment before i download it but I can't find the one i needed, I don't want the…
Bootstrap dropdown menu and modal pop up not working when using bootstrap reference file in ASP.NET
I'm using bootstrap dropdown menu and also using modal popup inside the gridview.i used below bootstrap reference for modal popup. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"…