skip to Main Content

Between the time in SQL Server and ASP.NET

I am storing STARTTIME and ENDTIME in a SQL Server table by using ASP.NET webform. timeTableID startTimeVal endTimeVal ------------------------------------------------- 1 07:30:00.0000000 08:00:00.0000000 2 08:00:00.0000000 08:30:00.0000000 3 08:15:00.0000000 08:25:00.0000000 Now, as you can see in the row with timeTableID = 2,…

VIEW QUESTION

views CORS error, but you get data and it is visible C# (ASP .Net Core) – Asp.net

I have this configuration in my Startup method, apparently everything works fine services.AddCors(options => { options.AddPolicy("MyPolicy", builder => builder.WithOrigins("https://localhost:5000", "http://localhost:3000", "http://localhost:3001") .AllowAnyHeader() .WithMethods("PUT", "GET")); }); app.UseHttpsRedirection(); app.UseCors("MyPolicy"); app.UseRouting(); app.UseAuthorization(); But when I start to do tests with another url that…

VIEW QUESTION

How do I apply an array values to Mongodb find() in ASP.net

I want to retrieve the specific data using an array-values, but I don't know how to deal with it. URL is like http://localhost/api/data?sym=aa&bb&cc DB documents are like: {"symbol":"aa","price":1.1} {"symbol":"bb","price":1.2} {"symbol":"cc","price":1.3} {"symbol":"dd","price":1.4} {"symbol":"ee","price":1.5} the expected result is: [ {"symbol":"aa","price":1.1} {"symbol":"bb","price":1.2} {"symbol":"cc","price":1.3}…

VIEW QUESTION

Increase number until mets condition – Asp.net

I have creation of tenant Here is code var tenant = new Tenant(tenancyName, name) { IsActive = isActive, EditionId = editionId, SubscriptionEndDateUtc = subscriptionEndDate?.ToUniversalTime(), IsInTrialPeriod = isInTrialPeriod, ConnectionString = connectionString.IsNullOrWhiteSpace() ? null : SimpleStringCipher.Instance.Encrypt(connectionString) }; await CreateAsync(tenant); await _unitOfWorkManager.Current.SaveChangesAsync(); //To…

VIEW QUESTION
Back To Top
Search