Geeks With Blogs
Create Fun Things - Samer's Developer Blog Development Blog for C#, .NET and Obj-C September 2009 Entries
Practical Understanding of Lambda Expressions in C#/ Linq
Lambda expressions are yet another one of those things that took me a while to really embrace/ understand but once I did, I use them exclusively in LINQ. The reason it took me a while to finally start using them is because every time I tried to read an explanation of them, the author got bogged down in a ridiculous amount of details and explanations that I either got lost, or just lost interest. Once I learned how to use them, I found it was easier to go back and re-read those explanations and understand ......

Posted On Thursday, September 24, 2009 10:32 AM

Quick Tip: If/else shortcut
Today is just another quick tip of something that took me a while to embrace, but once I did, I can’t live without it. Here’s an example. I have a try/catch block in my code for a button that runs a database process. I want it to catch any exceptions that come back and handle them by printing the message to the user. (Just a real rudimentary example to show how to use this shortcut:) catch(Exception ex) { if (ex.InnerException != null) { StatusLabel.Text = ex.InnerException.Message; } else { StatusLabel.Text ......

Posted On Thursday, September 24, 2009 9:50 AM

Dynamically Loading Web User Controls Using Database
I had looked up the LoadControl(“”) method earlier today, and came upon a short website entry that quickly discussed how to load a web user control (.ascx) dynamically onto a page. The link is: http://www.codeproject.com/... It mentioned inside that a CMS (content management system) could be built using this method + a database table to track these controls. It got me intrigued, so I decided to pursue it. It’s pretty simple, and actually adds a lot of cool functionality ......

Posted On Tuesday, September 8, 2009 12:39 PM

Copyright © samerpaul | Powered by: GeeksWithBlogs.net