Hi chandana,
although its after a long time from the date you did the above post, recently i wanted to encrypt my connection string in the config file and your post helped me a lot to catch up the how-to of it. Thanks a lot for your post.
i like the article at http://gridviewguy.com/ArticleDetails.aspx?articleID=143
Thanks..