andrevala.com
SharePoint Tip #15: Testing the Display Mode of a Web Part
When developing a web part (whether in WSS 3.0 or in ASP.Net 2.0) it can be important that it appears differently if the user is in edit mode. The simplest way to do this is to test the WebPar…