Archive of 2010 April
-
Backup plan when loading the jQuery library from CDN
Posted on April 20, 2010 by Frederik Vig in JavaScriptIn most of my project I load the jQuery library from a CDN, either Google or Microsoft. This ensures that my page will load faster for my visitors, since the jQuery file will get sent to them from...
Continue reading this entry → -
ListControl AppendDataBoundItems and DataBind
Posted on April 19, 2010 by Frederik Vig in ASP.NETBy default when using code like this, the list item will be cleared when data binding is performed. Please choose protected override void OnLoad(EventArgs e) { base.OnLoad(e); string { "C#", "ASP.NET", "EPiServer", "Umbraco", "jQuery" }; ddlCategories.DataSource = categories; ddlCategories.DataBind(); } Will give us. C# ASP.NET EPiServer Umbraco jQuery As you...
Continue reading this entry → -
Detecting Ajax requests on the server
Posted on April 6, 2010 by Frederik Vig in ASP.NET, JavaScriptIf you use jQuery or ASP.NET AJAX you can easily detect Ajax requests on the server by simply checking for the HTTP_X_REQUESTED_WITH HTTP Header. Both libraries automatically add this to the HTTP Header when they send a request. Here's a little...
Continue reading this entry → -
Creating a simple image gallery with EPiServer
Posted on April 3, 2010 by Frederik Vig in EPiServerIf you have visited sites like Smashing Magazine chances are high that you've seen articles with titles like "40 most used jQuery plugins", or something similar to that. I find articles like that to be great for inspiration. You...
Continue reading this entry → -
EPiServer File Manager and File Summary
Posted on April 2, 2010 by Frederik Vig in EPiServerOne 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...
Continue reading this entry →