How to: Troubleshoot "Server Error in '/' Application." error after SP2010 SP1 update
In case you just installed SharePoint 2010 Service Pack 1, or one of the new August/September 2011 updates is giving you a hard time, if you're facing the following error: "Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during [...]
Read MoreHow to: Get a SharePoint 2010 Lists XML file
There will be times that you need to fetch the XML file that describes one of your lists in SharePoint 2010. One example that pops to mind is when working with the Lists.asmx web service. You will need to have a visual of the XML file in case you need to operate on the data of the list in more depth. So how do you get the [...]
Read MoreHow to: Remove code from an InfoPath form to allow it to be filled in on the browser
Sometimes, working with InfoPath can be a real pain. One of these times is when you accidentally hit the “Edit code” option. Even if you completely cancel out of the new programming window, you will soon realise that, if you want to publish your form on a SharePoint server to have it filled in on the browser, you won’t [...]
Read MoreHow to: Sort and Reverse a DataTable
In order to sort/order the rows of a DataTable, we need to pass them through to an array of DataRow and access the DataTable’s “select” method. If the DataTable is called dtDocuments. To order: DataRow[] drDocuments = dtDocuments.Select(null, “nameOfColumn”); The above will create an array of DataRow. The members of the [...]
Read MoreBasics: Panel VS Placeholder (ASP.NET)
One more thing to keep in mind when working with ASP.NET is the difference between the two most commonly used controls to add other controls in a specific position on a page. The main differences are: 1. A panel expands to a span (or a div), with it’s content within it. ie. all [...]
Read MoreBasics: Page/Control Lifecycle (ASP.NET)
Embarrassing as it may be, I need to keep a note of the lifecycle of pages and controls cause, still, there are times when I mix them up. Page Lifecycle: 1. PreInit 2. InitComplete 3. PreLoad 4. LoadComplete 5. PreRenderComplete 6. SaveStateComplete Control Lifecycle: 1. Init 2. Load 3. PreRender 4. Unload NOTE: MasterPages and [...]
Read More