skip to Main Content

ASP.NET Boilerplate Service 'Microsoft.Extensions.DependencyInjection.IServiceProviderIsService' not registered

I just updated my visual studio so I could create a new project in .net 8, but now I'm getting the following error in my existing boilerplate 8.1.0 project: 'Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider_26c5b40a-354d-4734-90cd-1b6d59e8e3d1' is waiting for the following dependencies: Service 'Microsoft.Extensions.DependencyInjection.IServiceProviderIsService' which was…

VIEW QUESTION

Asp.net – Date Format COrrect

How can I modify the displayed date format in my database view to exclude the timestamp (00:00:00) and show only the date in the format (DD/MM/YYYY)? <td>@marks["Test_Date"]</td> I am fetching date here and i have tried like this <td>@((DateTime)marks["Test_Date"]).ToString("dd/MM/yyyy")</td> It…

VIEW QUESTION

Asp.net – I want to exit both foreach loop and while loop when opdnew<0

protected void btnOPDDetect_Click(object sender, EventArgs e) { SqlConnection con1 = GetConnection(); SqlConnection con = GetConnection(); DataTable dt = new DataTable(); double opdnew; string batchNo = lblIdforReport.Text; SqlCommand cmd = new SqlCommand("Select ExpenseSheetNo,FurtherDetail,FurtherDetailBy,Id,VoucherStatus,Convert(nvarchar(50),Date,106) As Date,ProcessType,ProgramDepartment,CompanyPerson,PreparedBy,RecommendedStatus,Convert(nvarchar(50),PreparedDate,106) As PreparedDate,SubmittedBy,Convert(nvarchar(50),SubmittedDate,106) As SubmittedDate,RecommendedBy,Convert(nvarchar(50),RecommendedDate,106) As RecommendedDate,FurtherDetailBy,Supervisior,TotalAmount…

VIEW QUESTION
Back To Top
Search