Tuesday, September 02, 2008

Saturday, May 31, 2008

.Net Road Show

I went to the northeast .net road show this week. Some of the sessions were very interesting. Chris Bowen had an interesting session about Linq. It's the same thing I was hearing about LINQ for the last year but the way he presented was very well and had some useful content. Some of the useful info:

- LinqPad is a great tool for creating LINQ expressions. It's free. Click here to download.
- ZoomIt tool from SysInternals was very handy for presentations. Click here to download.

In the afternoon, Bob Familiar did a great session about Silverlight 2. His presentation was very lively and useful. His blog has all the info about the presentation. Here some useful links.

- Woodgrove Financial web version using Silverlight
- HardRock Memorabilia built using Silverlight. Scott Guthrie already mentioned about this in his blog.

Happy Coding,

Madhu

Friday, May 23, 2008

How to debug stored procedures in Visual Studio 2008

It's very easy to debug the stored procedures in Visual Studio 2008. All you have to do is connect to the database from VS 2008 and run a stored procedure. Here are the steps:

1. Go to Server Explorer and open a data connection.





2. Once you add a database connection, open the stored procedure.




3. Step in to the stored procedure.





4. Pass the inputs.






5. Start debugging !





Happy Coding,

Madhu

Thursday, May 15, 2008

Reading email headers using Outlook Remption

Previously I posted on how to add custom information to the an email header. Obviously we do that for a purpose and need to retrieve it. The Outlook Redemption library makes it very easy to read that information from the email header.

RDOFolder inbox = Session.GetDefaultFolder(rdoDefaultFolders.olFolderInbox);

RDOItems mails = inbox.Items.Restrict("Select * from Folder where Unread='true'");

foreach (object obj in mails)
{
RDOMailItem item = obj as RDOMailItem;

string header = item.get_Fields(PR_TRANSPORT_MESSAGE_HEADERS).ToString();

}

I think retrieving the header can also be done using WebDAV and Office outlook libraries. But redemption makes it much simpler. For more information about Outlook Redemption, click here.

Happy Coding,

Madhu

Wednesday, April 30, 2008

C# Interview Questions

I came across these C# interview questions when browsing the MSDN Code Gallery. This might come in handy if you are hiring someone and looking for some questions to ask. Check it out:

Happy Coding,

Madhu

Adding Info to Email Header

Adding custom info to email header is very simple in .Net. This info can be used to identify/trace the emails back to some business objects. In case the email is bounced back you can easily track the email and act on it. Encrypting that custom info makes it even more secure. Here is how you add the custom piece of information:

//create a new smtp mail message
System.Net.Mail.MailMessage mailMessage = new System.Net.Mail.MailMessage();
:
:
mailMessage.Headers.Add("AdditionalInfo", "Some Info");
:
:
//Send the mail.

smtpClient.Send(mailMessage);


Happy Coding,

Madhu

Wednesday, April 23, 2008

FastCopy

I downloaded a tool to copy and delete files for Windows OS. Sounds silly right? But actually not. It's called FastCopy and is really is super fast!! I used this program to copy large amounts of data and I was very impressed. It also has more options like XCopy and can do replication. The program directly calls the Win32 API and it's pretty fast. Best of all, it's open source.

You can download it here.

Tuesday, April 22, 2008

IE Developer Toolbar

I recently came across the IE tool bar for developers. This tool just amazed me; it's like a heaven for web developers. The IE tool bar will make your job so much easier by letting you select elements of a rendered web page, providing their DOM properties, outline all elements, validate HTML etc.

This is a must install for all the web developers. You can download it here

Happy coding,

Madhu