Sir,
i have direclty encrypt the webconfig file with aspnet_regiis.exe -pef "connectionStrings" "C:\VisualStudio2008\Authorization",
Refererence is http://www.aspdotnet-suresh.com/2011/11/encrypt-and-decrypt-configuration.html
But still i m searching for encrytpion code which is used for webpage i mean aspx files. Can you guide me in this regards