SEO Expert for your website: Globe Runner SEO

Read more about SEO Expert for your website: Globe Runner SEO article

Globe Runner SEO is an search engine optimisation firm based in Dallas, The United States, which started from optimising own website, to a dynamic consulting firm due to the success of their result.

Black screen after login Windows 7

Read more about Black screen after login Windows 7 article

I have seen some people having the problem of getting to black screen after logging into Windows 7 and nothing happens from then on. Desktop not showing up, nothing... and all you could see is a cursor. This strangely happened to my PC just then and after Googling online, all the solutions seem to point to doing a system restore.

How to customise own theme in Sharepoint 2010

Read more about How to customise own theme in Sharepoint 2010 article

I had been customising Sharepoing theme lately in 2010 version, and i have to say it's not very fun, mainly due to lack of documentation online and a big change in UI elements comparing to version 2007.

How to create your own custom menu/item/actions in Sharepoint?

Read more about How to create your own custom menu/item/actions in Sharepoint? article

Often times we have to customise SharePoint’s stock user interface, particularly elements such as edit block, toolbar, menus, etc. It’s possible to have our own custom items in these areas, but first it would be a lot easier to understand their names and locations respectively.

Using LINQ in Sharepoint Object Model

Read more about Using LINQ in Sharepoint Object Model article

I have been playing around with LINQ in Sharepoint object model and I have to say I’m quite impressed. It does shorten the amount of code we write and works just as great or better.

How to select distinct from SPQuery CAML

Read more about How to select distinct from SPQuery CAML article

A handy way to select distinct records from SPListItemCollection set queried from CAML query.

How to migrate list structure and content in Sharepoint

Read more about How to migrate list structure and content in Sharepoint article

Sharepoint has a feature that allows us to migrate list data structure and content to a different site so that we do not have to re-create them. This is done through list settings -> save list as template. List template is a powerful function which can save the data structure of a list as well as its content.

How Sharepoint stores datetime field in UTC

Read more about How Sharepoint stores datetime field in UTC article

Lately we found a very interesting fact of Sharepoint, which I think is worth writing a post about. Although it is very rare that someone will read directly into Sharepoint database to retrieve information, but for some hardcore users, especially with my last post regarding how Sharepoint stores data in backend database, one can easily read into Sharepoint Prod_Content database and do CRUD transactions.

Accessing parent web list items carefully

Read more about Accessing parent web list items carefully article

I spent quite some time today fixing this problem of accessing a list item in parent web. What I had to do was to access a list item in a parent web, but it kept crashing as if there's no permission given to access it.

Useful common methods for Sharepoint Development

Read more about Useful common methods for Sharepoint Development article

Time and time again, I use these methods in coding for Sharepoint. These include methods for querying a list, bind a Dropdown List to a list, and bind a Dropdown List to a multiple choice field.

Reading Spreadsheet into a DataTable in C#

Read more about Reading Spreadsheet into a DataTable in C# article

This is an extremely useful function, which allows you to read an Excel spreadsheet and convert its data into a DataTable in C#. With data in a DataTable, we can perform lots of things to it.

Easy expand or collapse Sharepoint List in Group by view

Read more about Easy expand or collapse Sharepoint List in Group by view article

When you group list items by some fields, by default Sharepoint have the items collapsed. It's quite annoying to have to manually expand each. There's a way you could easily expand all list items or collapse in one click.

List Attachments Open as Read Only

I had the problem of saving files which I uploaded programatically to Sharepoint list item. When I tried to save them, there's pop up dialog saying the file is in read only mode, even I had all the required permissions.

Website finally back up from Google's block

Read more about Website finally back up from Google's block article

Just two weeks ago, my website had been hacked and what drove me crazy was I couldn't find out what was wrong, or which files were been hacked. All I knew was the site had been marked as containing malicious code by Google and hence visitors could not get to my site, which in another words, my site was blocked by Google!

How to duplicate a Sharepoint list item

Read more about How to duplicate a Sharepoint list item article

I was trying to add a duplicate link to the list item menu dropdown context box, so that user can click and duplicate an item. It's actually quite easy to do that.

Sys.WebForms.PageRequestManagerParserErrorException

Read more about Sys.WebForms.PageRequestManagerParserErrorException article

I had the problem of page not able to redirect when in an ajax postback. It happens to be the fact that I disabled a line in web.config:. This line should be added in HttpModules, so that redirection will work in Ajax postback. This class manages HttpModules for Ajax functionalities in ASP.NET.

How Google treats Content Duplication

Read more about How Google treats Content Duplication article

Today I was reading Google's Webmaster Guideline regarding content duplication on the Internet and steps that Google advise webmasters to take care if the situation applies. It's quite interesting as I did not know some of these facts.

How to create HTML column in Sharepoint List View

Read more about How to create HTML column in Sharepoint List View article

I came across this problem of wanting to add a column in the List view web part (stock standard one) with the ability to have html elements rendered properly. Unfortunately Sharepoint's standard list view only displays text in it.

How Sharepoint stores User Data

Read more about How Sharepoint stores User Data article

Lately I had fun digging into Sharepoint database and see how the monster was built and what its database schema looking like. Well, it's pretty smart the way it was built but it's also a pain for developers to understand and even to play with it, if they have to. With the business that I am working for, we have to create reports for corporates, which forces us to having to dig into Sharepoint database directly, even though I read a lot of posts saying that is not recommended by Microsoft.

How to send email via Sharepoint

Read more about How to send email via Sharepoint article

A useful function to send email in Sharepoint, programatically.

Malaysia Airlines launched iPhone Application: MHMobile

Read more about Malaysia Airlines launched iPhone Application: MHMobile article

Malaysia Airlines launched its iPhone application enabling Apple iPhone users to perform various activities through the little mobile gadgets, including flight checking, flight booking, status checking, timetables and deals and offers. I was really surprised considering MAS had always produced "lame" digital products, specifically their very not-user-friendly website, but this one seems to be an intelligent, strategic move!

Intranet, the next big market

Read more about Intranet, the next big market article

The release of Sharepoint 2007 really helped Microsoft stepping a big step forward into the Intranet market in recent years, but what's predicted coming up bigger than ever is Sharepoint 2010, which many industries experts have shown a lot of love with. When working with Sharepoint 2007, I actually got amazed by its usability and how flexible and useful it could be in a business environment. The even more amazing part is, the bigger the business, the more useful Sharepoint could be to the business.

How to retrieve and update from a multi choice Checkboxlist field

Read more about How to retrieve and update from a multi choice Checkboxlist field article

This post shows you how to retrieve a checkboxlist from a multi choice field as well as how to update the field using SPFieldMultiChoiceValue.

Auto Complete returns giant list of undefined

Read more about Auto Complete returns giant list of undefined article

Aaron was creating a custom web service to be used by web parts in Sharepoint, but then there was a problem of a giant list of "undefined" values returning. Done a lot of research and later this brilliant post directed us to the right place.

Integrate Ajax Control Toolkit into Sharepoint

Read more about Integrate Ajax Control Toolkit into Sharepoint article

I wanted to use Ajax control toolkit in Sharepoint, and had not had any luck until I spent the whole day debugging and getting it to work. I already had Ajax integrated in Sharepoint, so it should be fairly easy to just add in AjaxControlToolkit, but the problem is the latest version of it actually requires you to use ToolkitScriptManager instead of ScriptManager, otherwise your control will not work and you will see a Javascript error of "Please wait while scripts are loaded".

Dynamically assign task to user in Sharepoint

Read more about Dynamically assign task to user in Sharepoint article

I had to create a task dynamically in C# and assign the task to a reviewer, which is a user account. However, there was this problem of the "Assigned to" field is only read only. To do that, just create an SPFieldUserValueCollection and assign it to task item.

Getting SPUser from SPQuery programmatically

Read more about Getting SPUser from SPQuery programmatically article

I needed to get SPUser object from doing a lookup using CAML query, so that I could get the user information such as email address, etc. To do that, this is the code that I used:

Debug not working for Sharepoint

Read more about Debug not working for Sharepoint article

I had the problem of not able to debug Sharepoint in Visual Studio 2008 awhile ago, and glad that Aaron shown me how to do it by doing some tricks. What happened was the PDB file might not have been deployed to the assembly GAC.

ScriptResource.axd from Ajax getting Too Big

Read more about ScriptResource.axd from Ajax getting Too Big article

Today I was testing the loading time of my site, which I sometimes find it slow to access especially the first time loading. I knew there are a lot of images to be loaded especially those in portfolio sections but I also found that the biggest loading item seems to be ScriptResource.axd from Ajax. It was 330kb!

Restore list form web part for EditForm

Read more about Restore list form web part for EditForm article

Yesterday I spent the whole day finding on the Internet about how to restore the list form web part of my edit form as I accidentally deleted it and could never get it back from the Closed web parts, nor could I get it back by resetting the file to site definition in Sharepoint Designer.

Reading and Writing to Lookup Field in Sharepoint

Read more about Reading and Writing to Lookup Field in Sharepoint article

Lookup field is a field which links a child class to a parent class, it is an association kind, which allows a list item to reference another item from another list. However, reading and writing to a lookup field is different from a normal field. We need to use the class SPFieldLookupValue to archieve this.

Creating Update Panel in Code Behind Dynamically

Read more about Creating Update Panel in Code Behind Dynamically article

Creating Update Panel in code behind dynamically can be a bit tricky, comparing to doing it at the front end. Here's a quick view of the code we write to do this.

Solution to Hotmail and Email Accounts being hacked

Read more about Solution to Hotmail and Email Accounts being hacked article

Just yesterday I realised suddenly I couldn't login to my Hotmail account. No matter what I tried, even the password reminder, etc didn't work. It seems as if something happened and then I realised my eBay account is not working too. Normally I would use iPhone to login to My Ebay, and strangely when I logged in via IPhone, my eBay account username was shown as someone else. Immediately I knew my accounts have been hacked.

How to install a clean StatCounter Installation Code

Read more about How to install a clean StatCounter Installation Code article

I have been using StatCounter, as my website tracking statistic provider for many many years, even after Google Analytic came out. I liked Google Analytics but there is just one thing that Google can't provide that StatCounter does and that is the most useful piece of information I get from the stat.

Setting up a core framework for Sharepoint Webpart

Read more about Setting up a core framework for Sharepoint Webpart article

I was trying to create a web part with WSPBuilder installed on Visual Studio 2008, but had the problem of rendering a user control. Then I came across this blog post, which explains the steps in wrapping usercontrol with WSPBuilder solution. What's even greater is we can setup a structure which seperates the application presentation layer with the WSP project.

How to check Sharepoint fieldname with spaces?

Read more about How to check Sharepoint fieldname with spaces? article

One of the thing I hate most about Sharepoint is its naming. It does not tell the administrator what name it's actually storing a column field of, and this could always lead to errors.

How to kill database in use process for restoration?

Read more about How to kill database in use process for restoration? article

I recently installed SQL 2008 on my machine and once I tried to restore a database, it failed as it complaint as the database was currently in use. In SQL 2005, we normally go to activity monitor to kill the process but this is a little different in SQL 2008. The easiest solution now is to run this little query.

Customise Advanced Search box in Sharepoint

Read more about Customise Advanced Search box in Sharepoint article

Recently I had the chance to customise the advanced search box of Sharepoint server portal, with own fields/ properties and defined a seperate scope for it. It was not hard, but needs some research and practical experiments.

Integrating Ajax into Sharepoint 2007

Read more about Integrating Ajax into Sharepoint 2007 article

Recently, I had the chance to play around with ajaxifying Sharepoint server. As you would have probably known, Ajax is a great feature in .NET 3.5 but MOSS 2007 was shipped before Ajax was out. So, to use it, we just need some configurations done.

Customise Column Permissions for Sharepoint List

Read more about Customise Column Permissions for Sharepoint List article

SharePoint list has permission down to the list level, but what if we need to control view, edit and display for each column? I have been researching on a lot of add-ons around the Internet and luckily found one that works just brilliantly. There's this add-on called SPListDisplaySetting, hosted on CodePlex, which allows you to do that. Strange thing is the first time I installed it, it didn't work as it cooked up my list to not showing the action toolbar and i had to re-install WSS to get it back in shape.

Creating Custom Field Type in Sharepoint List

Read more about Creating Custom Field Type in Sharepoint List article

Sharepoint comes with a great GUI tool that allows administrator to create and manage data structure, that means we could create our own columns and set up the associations, etc. However, the default field types out from the box are limited. The great news is we could create our own field types with own business logic. I just tried to create a custom field type called "Phone Number", which is a standard text field but with Javascript validator that validates the input string to be a valid phone number.

Tools to get started on Sharepoint Development

Read more about Tools to get started on Sharepoint Development article

I have been digging into SharePoint for awhile now and it seems to be more and more interesting and challenging, considering I already have experiences with so many different Content Management Systems. Suprisingly, SharePoint seems to work very similar to Helium, so that eased my process of going in and out of Sharepoint.

Best Designed Home Loan Websites in Australia

Read more about Best Designed Home Loan Websites in Australia article

Online lending websites have grown big and popular these days, it's easy to find hundreds of websites created for people seeking finance to submit application online and get pre-approval, etc. However, not many of these websites have been done professionally or having a wow design. I had the chance to look through a lot of these websites and filtered out a list of the very good ones out there.

How to Sort and Filter Generic List of Object using LINQ

Read more about How to Sort and Filter Generic List of Object using LINQ article

One of the best things of using LINQ is how easy we could sort or filter objects with a line of code. Consider we have a generic list of object of Employees and we want to filter them with their age. Using LINQ, we don't have to connect to the data source and get the SQL to do the where query. We can just do something like this...

Making sure Lightbox still works in Ajax UpdatePanel

Read more about Making sure Lightbox still works in Ajax UpdatePanel article

I recently updated the homepage portfolio section with an Ajax filtering dropdown, allowing readers to filter my portfolio with different technologies and themes. However, that caused my old lightbox effect to lose ground somehow. After days of debugging, I found a way to deal with it, that is...

Setting Default Button for Textbox Upon Hitting Enter

Read more about Setting Default Button for Textbox Upon Hitting Enter article

This has to be pretty simple, but I never actually realised it. That is, when we have a textbox, and a button aside, and we want to enter text into the textbox and do a postback by hitting enter on our keyboard instead of hitting the button aside. This can easily be done by wrapping the controls inside a panel, and then set the defaultButton property to the button's id. Gee, I never knew that...

How to show DateTime as Time Left

Read more about How to show DateTime as Time Left article

I recently needed to show a datetime as amount of time left or past. This can be done by using TimeSpan, which you can get by subtracting one DateTime from another...

Using StringBuilder to improve performance

Read more about Using StringBuilder to improve performance article

Jorge pointed out the other day that when we do a lot of string concatenation, it is better to use StringBuilder instead of the String class (e.g. str += "something more"; ). This is because StringBuilder gives a better performance when in memory than the standard String class, which requires garbage collection to remove.

Wordpress, Safe Enough from Hackers?

Read more about Wordpress, Safe Enough from Hackers? article

I still remember the first time I started using Wordpress, that was not so long ago when the word 'blogging' started to appear on every media. Blogs have grown dramatically popular. Some blog for making pennies out of it, some blog for fun and variety reasons. Back in that time, there weren't many blogging platforms available, apart from those written as open source, such as Wordpress. It quickly became a hit year after year partly because of its simplicity of usage and free of charge.

Why Should Businesses Look into Search Engine Marketing

Read more about Why Should Businesses Look into Search Engine Marketing article

Search engine marketing is becoming one of the most important strategies for businesses these days. With research confirming that up to 80 percents of prospective web consumers use search engines or internet directories to find targeted content, search engine marketing is the most widely used method of attracting targeted visitors to a website.

How to connect ASP.NET application to use MySQL

Read more about How to connect ASP.NET application to use MySQL article

A very easy way to connect ASP.NET application to use MySQL database is to use the MySQL Net Connector. With just the following lines of code, you can easily hookup your ASP.NET application to any MySQL db.

How to solve unique group name for radio buttons

Read more about How to solve unique group name for radio buttons article

When using radio button in a repeater item template, there's a problem of grouping them to a unique name. Solution can be found: http://www.developer.com/net/asp/article.php/3623096

How to check if Constraint exist

Read more about How to check if Constraint exist article

A very useful statement to check if a constraint exists before do something to it. Note, we can never edit a constraint before deleting it and re-create. SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='dbo' AND CONSTRAINT_NAME='FK_37_Page_FK' AND TABLE_NAME='PageContent'

How to create Gradient effect background using C#

Read more about How to create Gradient effect background using C# article

Ever wanted to create a gradient image dynamically? This can easily be done using C# with the following snipplet of code. We can also specify the width, height, gradient direction (horizontal or vertical), and the two colors. By using LinearGradientMode class, a beautiful gradient image can be drawn in a sec.

Creating a XML based Dynamic Sitemap

Read more about Creating a XML based Dynamic Sitemap  article

Having a working sitemap in an ASP.NET application can't be anymore important. You can use it for navigations, breadcrumbs, etc. The default web.sitemap file is an XML file which provides the root node of the site, the SiteMapProvider used, and tracks the provider objects. System.Web.SiteMap inherits from System.Object. The default provider XMLSiteMapProvider works through the Web.sitemap. Besides being useful for site navigation, the sitemap also provides a easy way for search engines to look for pages on the site.

Make Firefox show fonts nicely as Internet Explorers

Read more about Make Firefox show fonts nicely as Internet Explorers article

I found something very interesting to know this morning, that is Firefox's always shown fonts in web page a little differently than IE browsers. IE tends to show fonts more smooth and nice. There's actually a way to change the settings so that Firefox could show fonts and lines more nicely like Internet Explorer. To do that...

DataBinder.Eval: 'System.Data.DataRow' does not contain a property

Read more about DataBinder.Eval: 'System.Data.DataRow' does not contain a property  article

For some reason, DataBinder.Eval(Container.DataItem, "id") will not work in li tag within the item template of a repeater. I had to use this: ((System.Data.DataRow)Container.DataItem)["id"].ToString()

Doroton, Leading French Food Manufacturer Website Up

Read more about Doroton, Leading French Food Manufacturer Website Up article

Doroton, a leading adelaide based food manufacturer specialising in wholeselling french tarts & patisserie has contracted Xplore to power their website. The website will showcase their wide range of popular products for leads and enquiries.

How to call parent and get data from usercontrol

Read more about How to call parent and get data from usercontrol article

UserControls are great, particularly in making the code more eye friendly, seperating big bunch of codes into different parts and be able to re-use them throughout the application. However, there are times when we need to reference something in the parent page or control from the usercontrol level. That's when I had an issue today, and finally solved it using the brilliant delegate.

Regular Expression for validating Australian phone numbers

Read more about Regular Expression for validating Australian phone numbers article

A very useful regular expression for validation Australian wide phone number, including mobile phones. This would accepts all forms of Australian phone numbers in different formats (area code in brackets, no area code, spaces between 2-3 and 6-7th digits, +61 international dialing code).

FCKEditor - Best Open Source WYSIWYG Editor

Read more about FCKEditor - Best Open Source WYSIWYG Editor article

Have been playing a lot with a number of WYSIWYG text editors, such as RadEditor and many other free ones, but the one that I liked the most would be FCKEditor, which is open source editor, written in Javascripts and support a wide number of languages like PHP, ASP, JAVA, .NET, CFM, etc. It's extremely easy to integrate, especially in .NET

Elegant Flexigrid for Your Web App

Read more about Elegant Flexigrid for Your Web App article

I have been playing around with a free datagrid control available, called FlexiGrid. It has to be one of the very best grid control available as open source. Having a very elegant user interface and very easy to integrate and customised codes, we could integrate FlexiGrid into any existing applications.

How to get QueryString using JavaScript

Read more about How to get QueryString using JavaScript article

A very handy function to grab any query string using Javascript:

Compress WebResource.axd in Client side HTML

Read more about Compress WebResource.axd in Client side HTML article

A very handy tool to compress the annoying webresources.axd script. http://madskristensen.net/post/Compress-WebResourceaxd-in-ASPNET.aspx

Use Enterprise Library for Data Access in one line code

Read more about Use Enterprise Library for Data Access in one line code article

Enterprise Library is a very useful component developed by Microsoft to help developers solving many common tasks. One that I use a lot is the data access block, which allows you to run data access query in just one line of code! (Saves all the work in writing a command and pass to a reader, etc).

Object references between two different object scopes are not allowed

Read more about Object references between two different object scopes are not allowed article

When using ORM, should always keep in mind that only one object scope is used. The example came with the package doesn't really explain this well. Should always declare a page_init call which declares the object scope and store it in session and try to keep using it for any business operations:

Convert DataSet to XMLDocument

Read more about Convert DataSet to XMLDocument article

How to convert data to xml file? Here is a very useful command to convert dataset or datatable to an XML Document:

How to check if a method is overridable

Read more about How to check if a method is overridable article

For a method or properties to be overridable, it must has a virtual property in its base class set as true as well, is final must be set as true. To determine whether a method is overridable, it is not sufficient to check that IsVirtual is true.

Security Exception when running on IIS7

Read more about Security Exception when running on IIS7 article

I stumbled upon an error when deploying a web application onto IIS7 running on Vista. After days of trying to solve, it's actually due to the fact that the application is set to medium trust but it actually needs Full Trust due to using Reflection in the code.

How to Customise RadUpload Appearances

Read more about How to Customise RadUpload Appearances article

Telerik's RadUpload control doesn't come with many documentation. The default comes with multiple file slots, with add and delete button but sometimes we might only need just one uploader.

Adding Line break in Javascript string (Unterminated string)

Read more about Adding Line break in Javascript string (Unterminated string) article

Somehow Javascript complaint about Unterminated string constant when I tried to add a line break (\n) into a string variable. If viewed in source, it looks alright. After all, do something like that fix that problem:

Telerik: ORM - Using Generic Method to Add New Object

Read more about Telerik: ORM - Using Generic Method to Add New Object article

When using ORM, after we have setup the business objects, it's useful if we create some generic methods which can be used in many places.

Some basic LinQ to SQL syntax

Read more about Some basic LinQ to SQL syntax  article

Have been trying to use Telerik Open Access ORM for the core framework. Finally have the basic structure setup. With having business objects layer, persistant classes and data access layer seperated, the web app itself could just communicate with the business objects, which then calls to persistant classes and data access layer.

RadControls Not Appearing In Toolbox

Read more about RadControls Not Appearing In Toolbox  article

Sometimes, somehow Telerik controls might suddenly not appear in Visual Studio's toolbox. A quick solution would be mouse hover to toolbox, add a new tab, and then choose items. Then point to the Telerik bin file (Telerik.Web.UI) and that should populate all controls into the toolbox.

Using Generic Method for Standard Add/ Delete in ORM

Read more about Using Generic Method for Standard Add/ Delete in ORM article

Telerik ORM (Open Access Mapping) has been a very useful tool, for mapping database structures into object oriented classes, so called Persistent Classes. This saves a lot of efforts in writing up these classes manually. What's more we could add on to it is to use generic methods on standard adding and deleting transaction.

Login Form Authentication with Multiple Web.Configs

Read more about Login Form Authentication with Multiple Web.Configs article

Applying security for a web application is a very common task. There are always parts on a web site that requires private only access for members. Recently, I tried to use the form authentication method provided by .NET and found it quite simple to use, though I have always done it with sessions. The

Commonly Used SQL queries

Read more about Commonly Used SQL queries article

These are some of the commonly used SQL queries at work, just to note them down for easier access. To add a contraint (foreign key): alter table pro_product add constraint FK_53_PRO_Category_FK foreign key (PRO_Category_FK) references PRO_Category(Id) on delete cascade