10 marzo 2011

How to identify last item in a nested .Net Repeater

If you have a typical Orders/Products page and you want to show every product inside every order I think the best solution is to use a Repeater (of products) inside a parent Repeater (of orders).

If you must do something in the last product template of a order how can you reach this condition?

4 marzo 2011

DISQUS data synchronization tips

I'm using DISQUS comments platform in my last project and I developed a .Net Windows service for synchronize the site's comments locally.

DISQUS exposes some useful API to accomplish my needs and I used the "forums/listPosts" call.

I'm getting started from this example on their site, so my service synchronizes all new comments every 10 minutes.

19 ottobre 2010

Video upload: Plupload with ASP.Net 3.5

Recently I'm moving from swfupload because even if this is a great tool I'm needing to let my users upload larger file.

So I'm testing Plupload: this uploader supports HTML5, Gears, Silverlight, Flash, BrowserPlus and chunked uploads.

24 giugno 2010

Directory.Delete() elimina le sessioni e la cache in memoria... dho!

La situazione è questa: sito asp.net 3.5 (C#) in cui sfrutto l'oggetto cache per velocizzare il caricamento di alcune collezioni provenienti da query o sempre uguali o troppo onerose per farle sempre...

...fin qua tutto ok fino a quando dopo aver implementato un sistema di upload di immagini noto che il server in cui risiede l'applicazione va in bomba dopo ogni upload (che possono essere anche multipli) :-|

29 maggio 2010

Errore download con RapidShare Premium e JDownloader

Tanto per cambiare qualcosa ha smesso di funzionare...
...oggi è toccato a RapidShare Premium e JDownloader.

Ogni tentativo di download fallisce con questo strano messaggio in tedesco:

"Der Download kann nicht bereitgestellt werden. Bitte prüfen sie ob ihr Browser die Ausführung von javascript erlaubt"... eh?