8127 0
Model binding and Custom Model binding in MVC
In this article,first, I will explain about Model binding in ASP.NET MVC and then I will explain to create custom model binder in mvc C#.
Type
Article
8117 1
How to upload image on cloudinary in ASP.NET MVC?

I have just started using Cloudinary to upload images for my client's project there & I was trying to upload an image using explanation provided here https://cloudinary.com/documentation/dotnet_image_upload but it's not working for me, can you explain a complete example of this? Or any link of tutorial will also help, thanks.

...
Type
Question
7868 2
Populating DropDownList with values showing error There is no ViewData item of type IEnumerable SelectListItem that has the key Name

I Have populated the DropDownList with the roles from the AspNetRoles, when I am registering a new user and allocating a role an error is thown

"There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Name'."

My AccountController :

...
Type
Question
7844 2
How to ignore files while committing code on GitHub using Visual Studio?

Hello, I am using Visual Studio and I was constantly adding "/bin/projectname.dll" files on GitHub until now, but now I want to ignore these .dll files. So How can I ignore these build files and push only files like .cs, .html,.js ,.css etc to GitHub Repository.

...
Type
Question
7840 1
How to debug in visual studio? ( Tutorial to debug C# code )
In this article, I have explained how you can debug your code in visual studio, line by line and make developer life easier using visual studio debugging tool.
Type
Article

7613 0
Custom Error pages in ASP.NET MVC
In this article, I have explained how you can show custom errors in ASP.NET MVC web-application using web.config and Controller settings.
Type
Article
7584 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
7455 2
Error: Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages.. when posting on facebook pages using Graph API explorer

Hi, I want to test if I can post from my app under facebook developer to my page facebook (my manager page) please look below image.

But I have got this error message as shown below

...
Type
Question
7446 2
How to clear cache on IIS quickly and easily?

Hello, We have a website on IIS, Windows server and we are using ASP.NET MVC OutputCache, now we have updated code for few pages, but server is still showing cached pages, so how can I remove cache or clear cache on IIS, without making website go down?

Thanks

...
Type
Question
7440 1
Validate Coupon code in asp.net by Calling WebMethod using javascript or jQuery

I need help to calculate resulted amount after applying coupon code, the thing is when user enter the coupon code, it can be of two type 0/1, suppose this is the table

Voucher Code

Amount

Off_type

Test

50

0

Demo

10

1

Now if the Off_type is 1, then Amount to be deducted should be as rupees, and if Off_type 0, then amount to be deducted should be percent of total.

For example: If total amount(without discount) is 100, and Coupon code is "Demo", then after discount total amount to be paid will be 90, as 100 - 10% Of (Total) =90

So I am not able to implement this functionality using jQuery and WebMethod, here is my current code

jQuery

...
Type
Question

Page 14 of 31