Hans Rasmussen

info@hansrasmussen.com, +46 (0)723 207008

Validation with jQuery validator plugin

Reference http://docs.jquery.com/Plugins/Validation/   Setup A reference to jQuery validator plugin <script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js”></script>   A reference to jQuery <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>   Configuration – simple on class and attribute level It is possible to declare your validation rules in various ways. It is suggested primarily to try it on class and attribute level and secondary [...]

MS SQL Server – Principal “username” is not able to access the database “db” under the current security context

Error: The server principal “username” is not able to access the database “dbname” under the current security context. .Net SqlClient Data Provider in SQL Server Management Studio. Reason: This is because the MS SQL Server is attempting to execute a T-SQL query to retrieve a list of databases along with additional information about those databases. [...]

Avoiding local maildrop when using CDOSYS

I experienced strange problems with some ASP scripts at a clients hosted web server. The script sends e-mails after completed execution and occasionally (quite often) some of the e-mails are not delivered or are delivered much later than expected. When running in a hosted environment it is also very hard to track as you have [...]

CRM Authentication

One good way of Authenticating against CRM Webservice is not tell CRM which internally defined system user account you wish to authenticate against. I found this good article from Microsoft about how to lookup the system user account based on the GUID that it receives in CRM after you have told CRM that you wish [...]

Encoding in your Visual Studio project

Have you experienced problems in your Visual Studio projects that no matter which encoding you try to use in your pages <?xml version=”1.0″ encoding=”iso-8859-1″?> for XML or <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> but still you have problems solving swedish characters such as å, å and ö when posting information to external webservice etc.  Try and configure [...]