12470 1
Pass checkbox values to Controller and show confirmation before deleting data in MVC C#

Hi, I want to pass multiple checkbox values for deleting data like

checkbox1: a,b,c,d  checkbox2: e,f,g,h

and pass it to the controller and want to show modal popup before sending Data to the controller:

Are you sure, you are going to delete 2 items? (Delete/No)

the modal pop-up will contain the only count of selected data and delete button for confirmation?

Delete button will delete all selected data

should I pass the data in JSON format or in the string?

Right now, I am passing the data like : var a = {values = CommaSeperatedValues}
In the controller Method passing argument as List<string> values and fetched values but I am getting an error like unexpected char at JSON

...
Type
Question
12459 2
disable browser back-forward button after logout in MVC

how can I disable browser back-forward button after logging out from asp.net MVC C# web application, I have tried this javascript code

...
Type
Question
12403 2
How can I add new SelectListItem at first position of a List in C# MVC?

I have already created a List in my ASP.NET MVC Controller, now I would like to add new Element at first position of the sorted list, how can I add it using ASP.NET MVC C#?

Here is the current C# code.

...
Type
Question
12380 2
Compressing (reducing size) of PNG image using C# in .NET MVC
This article will help you reduce size or compress png file size using C# and nQuant in asp.net MVC, it converts 32 bit PNGs to high quality 8 bit PNGs
Type
Article
12304 2
How do I set a project as startup project in Visual Studio Code?

I am looking for a solution to set a project as start-up project in Visual Studio code, like in Visual Studio 2015/2017 or in any other recent version, I right click a project within solution explorer and set it as startup.

However, I am not able to do that in VS Code. So, how can I accomplish that in VS Code? Thanks.

...
Type
Question

12176 0
Convert ASPX page to PDF in ASP.NET using iTextSharp
In this article, I have explained and showed a demo of how you can convert ASPX page into PDF using iTextSharp in your asp.net web-application.
Type
Article
12175 3
Best extension to convert C# Class to Typescript Interface Class

Hi, i just wanted to seek advice what is the best extension to reuse and convert my C# Class to Typescript Interface Class without coding it again. 

I've seen many extesions out there. Just copy and paste and it will produce typescript class, but I don't know what is the best of them. I also want a converter that convert accurately. Thanks, Happy Coding! :)

...
Type
Question
12090 7
How to create monthly attendance sheet with MVC?

I want to display a monthly attendance sheet using the below SQL tables:

 Screenshot_1-min.png

this is the attendance table.

img2

this is the employee table.

Here is the image of the output, which I need in the view

img4

And here is the current C# Code for the action is:

...
Type
Question
12044 0
How to get month name from month number in C#?
In this short article, I have explained how you can get month name in C# easily in any format, using Datetime.
Type
Article

Page 8 of 31