Monday, January 10, 2011
Dependency injection and ASP.NET MVC
Dependency injection is a specific form of inversion of control (IOC)
Open source projects related to this design patterns:
- Unity
- StructureMap
A criticism of dependency injection is that it is simply a re-branding of existing object-oriented design concepts.
Open source projects related to this design patterns:
- Unity
- StructureMap
A criticism of dependency injection is that it is simply a re-branding of existing object-oriented design concepts.
Friday, January 7, 2011
How to trigger the client-side validation manually in javascript
function Validate()
{
Page_ClientValidate('Group1');
}
{
Page_ClientValidate('Group1');
}
Thursday, January 6, 2011
innerText and textContent
In firefox, no innerText property, you have to go by textContent.
One line code to check this:
var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false;
One line code to check this:
var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false;
Two ways to Make Subversion ignore files and folders, suo file etc
two ways:
1. Add to Ignore list
2. Use TortoiseSVN → use Extended Context Menu → Delete (keep local). Press Shift and Right click on that file, goto TortoiseSVN context menu, then click Delete (keep local).
1. Add to Ignore list
2. Use TortoiseSVN → use Extended Context Menu → Delete (keep local). Press Shift and Right click on that file, goto TortoiseSVN context menu, then click Delete (keep local).
Subscribe to:
Posts (Atom)