4034 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
4003 0
Understanding session state in asp.net
In this article, I will provide you in-depth knowledge of how session state works in asp.net with a working code sample and how to work with Cookie less session in ASP.NET
Type
Article
3992 2
What is the visual studio 2019 download size, complete Community Edition?

I am trying to download Visual Studio 2019 Community edition for offline, but I would like to know what is the total size for Visual Studio 2019 Community Edition? I have downloaded 20GB of it, but it is still not complete, so I would like to know how long I will have to wait.

...
Type
Question
3938 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
3861 0
Send Emails in ASP.NET MVC using MvcMailer
In this article, I have explained how to install MVC Mailer in your ASP.NET application, set up email templates and send email using C#.
Type
Article

3858 1
Paging,Sorting and filtering in asp.net boiler plate?

I have downloaded asp.core project (MVC and angularjs version) and I would like to know how to implement paging sorting and filtering in asp.net boiler plate project using asp.net core

...
Type
Question
3835 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
3806 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
3793 2
Checkbox value not posting in ASP.NET MVC form?

I am trying to submit the form in ASP.NET MVC by updating a value of checkbox, but checkbox is not posting updated value to the C# Controller and posting null value, here is my razor code

...
Type
Question
3708 0
Convert PDF to HTML using C# in ASP.NET MVC
In this example, I have explained how you can convert PDF to HTML using C# and pdftohtml.exe in ASP.NET MVC
Type
Article

Page 13 of 27