The other day I was working on a .NET project I needed to perform a delete confirmation using jQuery Colorbox in ASP.NET ListView. After I spend long hours on internet I couldn’t find solution and come up with this idea. Hope you will enjoy it 🙂
Step 1: Add jQuery and Colorbox
you can download colorbox from https://github.com/jackmoore/colorbox
You can find jQuery Colorbox examples here http://www.jacklmoore.com/colorbox/
Step 2: Add the following inside < head > tag
Step 3: ASP.Net Listview using CommandArgument to delete the item
You can find much detailed information from ASP.NET Wiki: https://wiki.asp.net/page.aspx/1809/aspnet-listview-item-delete-confirmation-using-jquery-colorbox/
Modify “editXslt.aspx” xsltVisualize function as follow
Change UmbEditor._editor.selection() to UmbEditor._editor.getSelection();
FYI: You can find “editXslt.aspx” under “umbraco/developer/Xslt” folder
IECapt is a small command-line utility to capture Internet Explorer’s rendering of a web page into a BMP, JPEG or PNG image file. IECapt is available in a C++ and a C# version.
For more information please visit IECapt website: http://iecapt.sourceforge.net/
Shorten Number 1000 to 1K OR 1455 to 1.5K
private static string FormatNumber(int NumberCount)
if (NumberCount >= 1000000)
return FormatNumber(NumberCount / 1000) + "K";
if (NumberCount >= 1000)
return (NumberCount/1000D).ToString("0.#" + "K");
ASP.Net Validation Group won’t work well with jQuery CSS Form Validators. So here in this jQuery Group Validation we are going to use two logical input forms “#product” and “#productcategory”
The main idea of separating validation groups is to notify jQuery validation that it should just ignore any input elements outside the active Div ID groups. Here we are going to use jQuery validate() ignore option and the jQuery not selector, by telling dynamically the validation object to ignore all the input elements outside the active logical form.
Solution for Umbraco CMS Preview issue
This is an issue with Umbraco 4.7.1 and It’s been fixed but only in the latest nightly builds of umbraco.
- Download that fix from http://nightly.umbraco.org/umbraco%204.7.1/4.7.1/ and select the build “22.214.171.1249.zip”
go directly to the build http://nightly.umbraco.org/umbraco%204.7.1/4.7.1/126.96.36.1999.zip
- Unzip/Extract the zip file
- Take a backup of your old “Umbraco.dll” which has the preview issue, for your safety.
- Replace the “Umbraco.dll” with the newly downloaded file