I followed this link to update my tweet.
http://www.overpie.com/aspnet/articles/csharp-post-message-to-twitter.cshtml
The link shows some simple steps but still it is not exact as I am getting 401 unauthorized error.
Please look into this matter.