Archive for c#

EQATEC .net Compact Framework code profiler

If you are a .net Compact Framework developer, then youll know that up until now it has been very hard to profile your code for performance, something that is very common on the desktop.

Well, thankfully there is now a tool courtesy of EQATEC Profiler - which is now available, FREE

EQATEC release .net Compact Framework code profiler via MoDaCo

Encoding Strings to Base64 in C#

just a note for me


static public string EncodeTo64string toEncode
{
byte[] toEncodeAsBytes
= System.Text.ASCIIEncoding.ASCII.GetBytestoEncode;

string returnValue
= System.Convert.ToBase64StringtoEncodeAsBytes;

return returnValue;
}


static public string DecodeFrom64(string encodedData)
{
byte[] encodedDataAsBytes
= System.Convert.FromBase64String(encodedData);

string returnValue =
System.Text.ASCIIEncoding.ASCII.GetString(encodedDataAsBytes);

return returnValue;
}

Source: Encoding Strings to Base64 in C# « Arcane Code

WCF behaviors vs. pipelines on BizTalk Server R2

Good Starting Point to intercept the message flow and add custom behavior!
Source: WCF behaviors vs. pipelines on BizTalk Server R2 - Jesus Rodriguezs WebLog

how to call webservices from javascript

here are some useful resources/howto’s:

should be possible with prototype js lib!
http://www.prototypejs.org/

howto:
64bytes.com
blog.glenc.net

Eucalypto - ASP.NET CMS library using NHibernate

note to myself… check this out!

Eucalypto is an open source .NET business/server library to help writing ASP.NET content management web sites. […] ucalypto uses NHibernate for all data access and can work with any database supported by NHibernate (SQLite, SQL Server, MySql, Firebird, Access, Oracle, …).
Eucalypto is well integrated with ASP.NET 2.0 using the standard provider model classes (MembershipProvider, RoleProvider, ProfileProvider, …).

Source: http://www.codeproject.com/useritems/eucalypto.asp