Markup:
Javascript:
Thursday, 18 August 2011
Dynamically create and show a jQuery UI dialog from Javascript
If you need to create a jQuery UI Dialog dynamically from javascript, heres how!
Labels:
javascript,
jQuery,
jQuery UI
Tuesday, 16 August 2011
Monday, 15 August 2011
How to check whether a column exists in a particular database (SQL)
If you need to check for a particular column in SQL server but you don't know which table it is in then it can be found with the following query:
Labels:
SQL
Monday, 8 August 2011
Add "Open with Notepad" to the Context Menu for All Files
Open regedit.exe through the start menu search or run box, and then browse down to the following key:
Right-click on “shell” and choose to create a new key, calling it “Open with Notepad”. Create a new key below that one called “command”. Double-click on the (Default) value in the right-hand pane and enter in the following:
The change should take effect immediately… just right-click on any file and you’ll see the next menu entry.
Right-click on “shell” and choose to create a new key, calling it “Open with Notepad”. Create a new key below that one called “command”. Double-click on the (Default) value in the right-hand pane and enter in the following:
The change should take effect immediately… just right-click on any file and you’ll see the next menu entry.
Monday, 1 August 2011
TargetInvocationException - Object Does Not Match Target Type
If you have a gridview in asp.net that is bound to a list of objects that are not all the same type (they are all derivatives of the same base class) you may get an error saying the Object does not match the target type.
This is because the gridview looks at the type of the first item in the grid and expects all other items to be the same type.
There is an easy work around for this which can be achieved by converting all of the columns to template fields so the properties are evaluated separately.
This is because the gridview looks at the type of the first item in the grid and expects all other items to be the same type.
There is an easy work around for this which can be achieved by converting all of the columns to template fields so the properties are evaluated separately.
Subscribe to:
Posts (Atom)