two decimal for label
Hello This is my sample code Label LRO = e.Item.FindControl("LRO") as Label; LRO.Text = roff; its should return value in something example two digit decimal 12.45 14.00 15.12 how to do so thanks
round value automtically
Hello I have one Label1 and textbox1 for example Label1 has value = 490.56 In textox1 i have to show round off value on button click = 0.44 for example Label1 has value = 30.12 In textox1 i have to show round off value on button click = -0.12 how to do…
SignalR connection
How can I test the connection of SignalR hub without client I write this code and do not know how to test to check if there is a problem in my code here is part of my code that is for signalR in my api: please tell me how should I do to connect…
(failed) net::ERR_Connection_reset in production site
ASP.NET Web Form site worked fine in test. I moved it to production and the site won't come up. I've done a reinstall and double checked all I could. I looked for an answer into this and came away with it being a browser issue when it is not that as this…
Getting failed: NET::ERR_Connection_reset in production.
I'm getting this error when I uploaded a new site to production. I've looked elsewhere and so far the results point to it being a browser issue except anyone going to the site gets the same error. The site uses SSO, but it never reaches it as it errors…
*How do I add MVC 4 to an existing .net framework web application 4.8 that includes controller and view folders, and routing information.
This question starts in https://learn.microsoft.com/en-us/answers/questions/1662118/how-do-i-add-an-mvc-template-to-my-web-app-project I thought that is should be more specific in my question, so, I created a new post with more a more specific title. I…
how to save/update image location in a database via .cs controllers class (button click)
code behind Create.cshtml file the update button @model IMS_Project.Models.Product @{ ViewBag.Title = "Product"; ViewBag.SubTitle = "Create"; @using (Html.BeginForm("Create", "Product",…
Upload de arquivos no ASP.NET 4.6.1
Good morning my friends! I'm having a lot of difficulty uploading a 1.5GB file to Asp.Net. I've tried different ways but all without success. I adjusted the web.config like this <httpRuntime targetFramework="4.6.1"…
Do you know of any forum sites that except questions about uwp making apps & coding, from visual studio 2022
Do you know of any forum sites that except questions about making uwp apps & coding, from visual studio 2022
How to view/show image from file server path on button click
i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…
How do I add a CAPTCHA to a web site written with ASP.NET/VB
A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…
ASP.NET button control not able to make disabling in panel control using c#
i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…
*System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing
Hi, Why my Polly Timeout handler not working? I still getting: "System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds…
Asp.net MVC renders 2 "form action" statements for the same form when in responsive mode
ASP.Net MVC VS 2022 Windows 11 App runs fine in desktop mode. This line: <@using (@Html.BeginForm("SubmitForm", "Home", FormMethod.Post, new { id = "subform", verify = "Y" }))> is generated correctly…
ASP.NET - The specified network password is not correct - X509Certificate2
I have a .NET web application where trying to import the certificate using the "X509Certificate2". While importing, getting the "The specified network password is not correct.". The certificate is password protected .pfx file and I'm…
*.net referenced dll is not seen with a using statement
Hi, I have a project called MBSAnalysisMVCWebApp which is a web app. I reference MBSAnalysisMVCWebApp from my main MVC project called Mbsa. But when I try a using statement, It says MBSAnalysisMVCWebApp cannot be seen? The MBSAnalysisMVCWebApp.dll…
Scriptmanager alert not displaying properly in same page
I am doing some simple screen add functionality and after end of saving, i am using scriptmanager.RegisterStartupScript() for save message. when i run the program, the alert have not been throwing properly. it showing same page but, without controls like…
How to upload file and view those file in modal popup using gridview
I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…
How to calculate years from two different date in ASP.NET C#
I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…
How to design patterns from scratch using C# asp.net MVC
I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…