Hello, in my details view model I want to make a LINQ that shows 4 related car to the current car by manufacturer and price, but I don't get it to work really, can someone please helpme? The view model looks like this.
public class DetailsViewModel
public BolindersContext ctx;
public Car car;
public Car currentCar;
public DetailsViewModel(BolindersContext ctx)
this.ctx = ctx;
public DetailsViewModel(BolindersContext ctx, Car car)
this.ctx = ctx;
this.car = car;
this.currentCar = car;
IQueryable<Car> PriceyCars(BolindersContext ctx, Car currentCar)
return ctx.Cars.Where(e => e.Brand == car.Brand).Where(e => e.Price > car.Price).OrderBy(e => e.Price).Take(4);
Hello can anyone help me with this? i am trying to make a carousel with bootstrap, and i am using images from my db, but as you can see in the picture, both images are showing at the same time with no consideration to the carousel, any ideas how i can fix this? the code looks like this.
As Richard mentioned, this is very easy to fix but since you didn't post any of your code I'm not sure what more you want us to do. Review your code and make sure you're adding all the necessary parameters.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
My Visual Studio 2017 community is opening my React-Redux Application with tsx files by default when I am opening new Project, is there anyway to open it with .jsx files instead? This is for my learning at home, not understanding how can I make jsx files as default for the React Redux template? Am I missing something? Any help please?
Because according to this Github complaint or issue, TSX is the official extension to be used for today's React Projects as of 2018. They say that JSX is not a language, but rather psueto code.
Makes sense to me. I remember going to a training center to recruit entry level programmers and one of the advanced speakers that night did a presentation on React, and I was surprised that React wasn't using TypeScript. In fact none of these new programmers have never even heard of TypeScript. So if React finally went TypeScript than I applaud it. Perhaps Nathan has a better explanation for this.
IDK about this but most of the clients and even Developers are using jsx, its just unfortunate how things are going - to confuse the developers more. Even though ts and jsx work same way behind the wheels at least there is learning curve added on the developers side which makes their life more uneasy anyways no complains about industry, we have to survive in it .
For me at least, when I soon transition over to React next year from Angular, I can concentrate on writing TypeScript so that makes it easier for me since I have 18 months in on it currently. I wasn't looking forward to writing in something else for React.
I totally get your position. When I started writing Angular, it was called AngularJs, and was completely different. But AngularJs allowed the developer to use an AngularJs object on a single page within a project of say Razor pages. Just like the first version of React that I learned in which I could create a single React object and embed it on a Razor page. And I thought that was so cool to be able to do!
Give it a couple of months and you'll see how superior TypeScript is. TypeScript is evolving as well and getting much better. It's almost like using c# in VS2017 as far as intellisense goes.
And next on your Radar is Vue. Suppose to be way easier to learn.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
I understand if they are releasing Technologies like Angular, React, Vue or even something else because they give better features, but at least languages could have been consistent within VS at least, but its OK we have to learn to fill our bellies
Nothing I've read about this error seems to be the problem, because the problem is not the code. My co-worker created a solution in Visual Studio 2019 that has a web application and a WCF web service. He had it working on his machine, then he put it into our source repository. I checked it out of the source repository and made NO CHANGES to it. When I tried to update/configure the service reference with the address on my machine, I got the above-mentioned error message.
We're thinking it must be some option or setting in Visual Studio 2019 that is different on our machines. We both have .Net Framework 4.8.
After a lot of digging, we found that the problem apparently was in the code, after all. When I checked the solution back into source, and my co-worker checked it out, he then received the same error message as I received. We don't really know why his worked initially, because we had compared our web.config files, and they looked the same.
hi everybody here, I have requirement, in the following way, i have some button or link, when its clicked it opens a new Window, i want to pass some values or (maybe state) from parent window to child window like user id, user name etc (just user id is also enough), in the child window user enters values and clicks on the submit button, what i want is
1. either the data from the child window to be posted along with the user id information, then the components like grid, dropdown, textbox etc in the main window refresh with the newly entered values without page flickering
2. or all those values to be transferred to the main window to refresh with new values, and main window submit button submit those values.
Anybody please give me an example for it or is there any better approach for it than React iFrames, any help - thanks in advance.