Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Παρουσίαση με Ετικέτες

Όλες οι Ετικέτε... » Sharepoint » Anti-Patterns   (RSS)
  • Totally wrong way to filter a combo box

    From the same legacy code as this post comes this code that loads a combo box with ListItems and then removes unwanted items in a way that is guaranteed to cause an exception when the indexer reaches the middle of the list, which now has only half the initial items:ddlItems.Items.Clear(); // Re-load so we can filter the ...
    Δημοσιεύτηκε στο Panagiotis Kanavos' Weblog (Weblog) από το μέλος pkanavos στις Ιουνίου 14, 2010
  • Totally wrong way to use SPSite, SPWeb

    Almost all Sharepoint developers know that you should dispose SPSite and SPWeb object you create in code. Doing so is not hard, you just enclose your objects in a using statement. I found the following piece of code in dozens of places in some legacy Sharepoint code created by people who should have known better:SPSite site = null; SPWeb web = ...
    Δημοσιεύτηκε στο Panagiotis Kanavos' Weblog (Weblog) από το μέλος pkanavos στις Ιουνίου 11, 2010
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems