Run asp.net c# popular snippets in the browser! Cool stuff.
here: Popular .NET code – Runnable.
Other languages as well: http://runnable.com/
My bookmarks and blogposts regarding Software Development in .NET, C#, Angular, JavaScript, CSS, Html
Run asp.net c# popular snippets in the browser! Cool stuff.
here: Popular .NET code – Runnable.
Other languages as well: http://runnable.com/
To overcome this error, you should clear the previous selection of your ddl as following:
ddl.ClearSelection();
via c# – Cannot have multiple items selected in a DropDownList – Stack Overflow.
Thank you Arild Henrichsen!
If you need some code for:
Handling EPiServer users and roles in EPiServer 5 and 6.
Such as:
– Retrieving users
– Authenticating users (login/logout)
– Creating and deleting users
– Creating, assigning and deleting roles/groups
– Retrieving/setting user profile properties
– Access rights for users and roles
Just go here:
Handling EPiServer users and roles – reference list – Epinova.
You know that annoying thing that happens when you try to click a link or a button on a page and you miss, and accidentally marks some text or html:
Css fix:
body{ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
via javascript: Disable Text Select – Stack Overflow.
Js IE fix: (probably needed for some versions of Internet Explorer…)
onselectstart = function(){ return false; }
Jquery IE fix:
In jQuery 1.8, this can be done as follows: (function($){ $.fn.disableSelection = function() { return this .attr('unselectable', 'on') .css('user-select', 'none') .on('selectstart', false); }; })(jQuery);
http://stackoverflow.com/questions/2700000/how-to-disable-text-selection-using-jquery
I havent tested these anywhere… yet. But Stack Overflow is usually right.
Learn some of these and rejoice!
ReSharper 8 Default Keymap – Visual Studio scheme:
http://www.jetbrains.com/resharper/docs/ReSharper80DefaultKeymap_VS_scheme.pdf
Epinova QA checklist for EPiServer CMS 6 projects
Sharing our comprehensive QA checklist for EPiServer 6 projects, based on best practices, experience and common sense. The checklist covers development, usability and deployment.
via Epinova QA checklist for EPiServer CMS 6 projects – Epinova.
One hidden little feature that is nice to know about is the filesummary.config file. When you edit a file in EPiServer’s File Manager, you can edit the data for that file (simply right-click on the file and choose Edit File Summary).
via EPiServer File Manager and File Summary | Frederik Vig – ASP.NET developer.
(0. Setup the CMS site as usual in IIS)
1. Add “Commerce Manager Site” in IIS, Commerce version 1 is NET 2.0 app pool , point to “Manager” folder of EPiServer Commerce. E.g “MySiteCommerceManager” for project MySite: C:\Projects\MySite\Solution Items\CommerceManager”
for instance the same hostname as the CMS site e.g MySite.local but use port 8080 in IIS.
2. Add various “virtual directories”:
/Apps
/_cmsbase
/_cmsctrls
E.g from this path:
C:\Projects\MySite\Main\Solution Items\Commerce\Framework\Shared\*
(PS. folders _cmsbase and _cmsctrls is removed from EPiServer Commerce 7.0+)
3. Set config files paths for c: to correct places.
(in Visual Studio shift+ctrl+f) search for “c:” look in “entire solution ” look at these files types: *.config
e.g VPP – in commerce/manager/configs/baf.config
4. Make sure Commerce licene is in place:
(EPiServerCommerceLicense.config).
At Manager root folder AND in webste root folder. Important! can for instance make it impossible to add items to cart in website (just redirects to startpage or similar strange error).
Can’t find error template “StoreClosed.htm”
– Setup the correct virtual directories for manager site:
http://developerswarpzone.wordpress.com/2011/03/16/episerver-commerce-cant-find-error-template-storeclosed-htm/
Assembly Episerver.Commerce, Episerver.Licensing couldnt be found
– Add assemblies to the manager bin folder.
Licenses missing
– Add EPiServerCommerceLicense.config to webroot of manager site AND to website root.
http://www.epinova.no/blog/arildhenrichsen/dates/2010/9/episerver-ecommerce-installation—redoux/