asp.net

/Tag: asp.net

nopcommerce: How to get Role Name from applied discount coupon?

By |2012-10-11T11:08:02+00:00October 11th, 2012|Categories: Programming|Tags: , , , |

- Create a discount from the cms admin - Add  a requirement for that discount and select "Must be assigned to customer role" and choose a role. The next steps can be done anywhere in the website, I will use the CommonController to show the role name inside the website header beside the user email -  Go to CommonController  and inside the HeaderLinks method add these lines: // Added by treenodes 10 Oct 2012 string discountRoleName = string.Empty; if (discount !=null && discount.DiscountRequirements != null) { var requ = discount.DiscountRequirements.FirstOrDefault(); foreach (var customerRole in customer.CustomerRoles.Where(cr => cr.Active).ToList()) if (requ != null [...]

Large file upload – asp.net

By |2012-04-23T23:08:05+00:00April 23rd, 2012|Categories: Programming|Tags: , , , |

Uploading large files in ASP.Net or MVC is a little confusing for some of us. I faced this confusing issue more than a year ago and solved it by the help of some articles online, but recently I faced the same issue I faced 1 year ago, and totally forgot how to fix it. So I wanted to list here the URL which solved all my issues a year ago, and solved it recently as well: Telerik Uploading Large Files , This article contain everything which helps to edit the web.config and IIS to make uploading large files a nice task. To know more [...]