Wednesday, January 27, 2010
Friday, January 22, 2010
Get the name of the method
Sometimes it is easy to print the methodname of the current method. This can be typed manually, but with use of Reflection this can be retrieved with the following simple command:
System.Reflection.MethodBase.GetCurrentMethod().Name
Monday, January 11, 2010
Saturday, January 9, 2010
Reflector
Reflector is a tool for disassembly a dll. So you can see the source code and you can analyse if the assembly works correctly.
Link dump
Loading Message with Ajax
http://weblogs.asp.net/aghausman/archive/2009/07/20/show-loading-message-in-asp-net-ajax.aspx
Resolve urls with Javascript
http://weblogs.asp.net/joelvarty/archive/2009/07/17/resolveurl-in-javascript.aspx
Logging guidelines
http://www.bugfree.dk/blog/2009/07/22/basic-logging-guidelines/
http://weblogs.asp.net/aghausman/archive/2009/07/20/show-loading-message-in-asp-net-ajax.aspx
Resolve urls with Javascript
http://weblogs.asp.net/joelvarty/archive/2009/07/17/resolveurl-in-javascript.aspx
Logging guidelines
http://www.bugfree.dk/blog/2009/07/22/basic-logging-guidelines/
.NET Validators
When using 'Validators' you must use the property "IsValid" and you must use the method "Validate".
For a CustomValidator you must implement the 'ServerValidate' event.
Also the property 'ClientValidationFunction' must be set to organize the Client side validatie.
source: validator
arguments.value: the control which must be validated
arguments.isvalid: true if the value is valid otherwise false.
- http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx
- http://www.codeproject.com/KB/validation/MultiDependValidator.aspx
For a CustomValidator you must implement the 'ServerValidate' event.
Also the property 'ClientValidationFunction' must be set to organize the Client side validatie.
source: validator
arguments.value: the control which must be validated
arguments.isvalid: true if the value is valid otherwise false.
- http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx
- http://www.codeproject.com/KB/validation/MultiDependValidator.aspx
Do not use underscores in DNS computer names
The support of Internet Explorer with underscore is not the same as for browsers like firefox and chrome.
Take the following address: http://pc02_test.domain.com/webapp
When you now want to store some information in the cookie, this goes wrong. So the advise is do not use underscores!
More information:
- http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/8e876e9e-b223-4f84-a5d1-1eda2c2bbdf4
- http://www.enhanceie.com/ie/bugs.asp (IE005)
- http://support.microsoft.com/kb/909264
Take the following address: http://pc02_test.domain.com/webapp
When you now want to store some information in the cookie, this goes wrong. So the advise is do not use underscores!
More information:
- http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/8e876e9e-b223-4f84-a5d1-1eda2c2bbdf4
- http://www.enhanceie.com/ie/bugs.asp (IE005)
- http://support.microsoft.com/kb/909264
Environmental overrides with Enterprise Library
For the most application there are several environments available. Each environment has his own configuration (like connection string, files and so on).
With Enterprise Library you can create environments and override some properties of the web.config. See for more information: Environmental overrides.
With Enterprise Library you can create environments and override some properties of the web.config. See for more information: Environmental overrides.
Subscribe to:
Posts (Atom)