Add style overflow:hidden to the tags that have overflow to fix this problem.
Category: Uncategorized
C# Sharepoint Console App
When updating remember to call Item.update
Software Engineering Toolbox
Notepad++ macro feature.
Visual studio useful plugins:
Microsoft TFS Productivity Power Tools: for browsing source code in TFS, finding files
Email:
Papercut
Freesmtp server tool, allow running a smtp server on windows 7 ,http://www.softstack.com/freesmtp.html
tips for debugging and fixing code
Use WinMerge to check for differences in pieces of code when trying to eliminate duplicates of code
Troubleshoot sharepoint webpart problems
to troubleshoot webpart problems if the page doesn’t load correctly, can be used to disable malfunctioned web parts.
Webpart not registered as safe, safe control
-The namespace in .webpart and Element.xml files are correct.
Sometimes re-activating the feature may help.
If you renamed the webpart in Visual Studio, do a Find All in file and search for the old webpart name to make sure all references are updated.
Sharepoint account is locked
Tips to improve performance of Virtual Machine
Run the VM on a seperate hard drive, this will improve the disk IO since the host machine’s hard drive and the VM’s can spin separately from each other.
If possible, use an external SSD drive, especially for Sharepoint development. SSD will improve performance dramatically.
Make sure your VM have sufficient RAM for development. Upgrade the host machine to have more RAM and allocate more to the VM helps a lot.
Optimize the VM’s OS and app settings, disable unused services and applications.
Sharepoint webpart validation prevents page from saving
When developing webparts, put in code to disable validators while in edit mode.
//if we are not in display mode disable all the validation controls to make sure saving the page the webpart is on works. if (SPWebPartManager.GetCurrentWebPartManager(Page).DisplayMode != WebPartManager.BrowseDisplayMode) { foreach (var validator in Controls) { if (validator is BaseValidator) { ((BaseValidator)validator).Enabled = false; } } }
Verifying that a test case is valid
Be careful when tempering with test data as you may accidentally change the test data so that the test case always passes.