Click here to Skip to main content
15,886,781 members

Comments by Member 1283347 (Top 8 by date)

Member 1283347 21-Jan-21 16:25pm View    
I have got it working. Not sure why it was not working first. But just css
imgBackground {
/*min-height: 35vh;*/
/*Height: 378px;*/
max-width: 100%;
height: auto;
background: url('../Content/Images/about-1022x327.jpg') repeat scroll;
background-repeat: no-repeat;
background-size: cover;
Member 1283347 20-Jan-21 19:40pm View    
If I can achieve the results I want by maintaining the aspect ratio then yes else it doesn't matter.
Member 1283347 8-Nov-19 8:28am View    
Hi Thanks for your solution but this does not work in Entity Frame work. I have solved it be using DbFunctions.DiffDays
Member 1283347 7-Apr-19 14:03pm View    
I know what my issue is not that I am not debugging my code. Maybe I am not explaining my issue well. The code can give me the last Thursday of each month between two dates correctly.
What I want to do next is just display the start date and the end date for each month between the two days. That is where I am having an issue.
This portion of my code: var e = _dtNew.AddMonths(+1).AddDays(-2);
months.Add(new BusinessWeekDays{ StartDateMonth = _dtNew, EndMonth = e});
is just to show the beginning and end date for each month. I know I am not getting it correct here hence the reason for asking for help. Without these two lines the code gives me correct Last Thursday of every month.
Member 1283347 19-Feb-19 18:35pm View    
I have resolved my issue. I was using enum RecurringSeries.Weekly which wasn't properly callled. Changed to database table column and everything works fine. Thanks for your help.