Getting AvailableBytes of memory and PercentIdleTime of CPU from a remote servers with error
I am creating an ASP.NET MVC web app to query a list of server resources like Disk Space, RAM and CPU using WMI classes. Everything worked as expected from my local development environment. All the queries are called using a user account with Admin…
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…
Table border issue
Hi, What is wrong below? How to correct it?
Multiple App.Razor components
Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…
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…
When we will update on the next version of MVC5.3.0 if there is no updates on the version please provide documentation for that.
Hi please provide the relavent info regarding the ASP.NET MVC 5.3.0 is there any updated on version if not please provide the documentation. Regards vinayak
How to display information in a custom format using one Textbox and a Literal or Label control
Hi, Is there a way to display database column values in a label, exactly the way it looked in a textbox in the previous page? What I mean is, if I insert data into database, and in the textbox where the data was typed, the data will be stored in DB and…
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…
Calculating total sum of money between dates and displaying the result in label control
Hello, I have been trying to calculate the sum of a particular column in database and display the result in a label control. The column is set as Nvarchar(max). I also need to search for and display the sum based on two dates. I only have one date column…
Performance issues in Session State
Hi. We are running a .Net Framework 4.8 mvc web application with redis session state setup. We are experiencing performance issues and the profiling we have done indicates that session state, specifically GetSessionStateItemAsync, is waiting for long…
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…
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…
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?
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…