3649 1
Can we use Nested switch case in C# or switch case under if else case in ASP.NET C#?

Hello,Can we use Nested switch case in C# or switch case under if else case in ASP.NET C#? If yes, can anyone provide an example? I have been successfully able to redirect users to certain pages depending on the basis of the ratings. Now I want to redirect them depending on the basis of the ratings as well as DestinationID. I have attached the code for redirecting users depending on the ratings done by them.

...
Type
Question
14805 3
Check if list contains a value using lambda and EF in MVC

I have an array of string values, now what I need is to filter the list of data based on matching each element of array with list, means need to select those list items which has typeId == SomeValueInTypeArray

Something like this

...
Type
Question
8357 2
how to disable "Chrome script debugging in Visual Studio is enabled" in Visual Studio 2017?

How can I disable this debugging(image below), I'm using Visual Studio 2017 Community edition and don't like the new chrome window whenever I click Debug in Visual Studio using Chrome browser

...

Type
Question
6489 1
How to Leverage browser caching for my CSS and js files.

How to Leverage browser caching for my CSS and js files?

...
Type
Question
2375 1
How to save image/video on server with or without web api in MVC?

I have a website that shows galleries, users can upload their own content from the web (by entering a URL) or by uploading a picture from their computer.

I am storing the URL in the database which works fine for the first case but I need to figure out where to store the actual images if a user uploads pictures from their local computer.

Is there any recommendation here or best practice on where should I store these and how can i store it on server?

help me! thank you very much

...
Type
Question

2686 1
Cannot connect with database using jQgrid in asp.net MVC

Hello, I am using jQGrid in asp.net MVC project, but I can't connect to database using the below code

...
Type
Question
7312 2
How to delete a single Record using Entity Framework?

How can I delete (remove) single record from database table using entity framework in asp.net MVC Controller?

please note I want to delete row of selected Id from the database permanently(Not to make a column IsActive and set it as false)

...
Type
Question
6937 1
How to Edit data using pop-up modal in knockout js and MVC?

How can I edit/update value using pop-up modal in knockout js and MVC?

My data is being displayed in a table using knockout but when the user clicks on edit button, text boxes, values should prefill with data in pop up model against particular id, but I am not able to achieve this.

...
Type
Question
8624 1
ViewBag data from controller is not visible in Partial View

I am passing Select List from ViewBag in controller to partial View, like I used to do , but it is not showing SelectList on partial View when code is pushed on server, while it works when running code locally, here is the code

Controller

...
Type
Question
10387 2
how to get MVC model list in javascript and pass it to controller?

How to fetch model values (IList<Model>) in the script and pass the data to the controller?

I want to pass the data like : 

array 0 : id : 1,id:2

array1 : id : 3,id:4

...
Type
Question

Page 25 of 31