Dear Shyam,
It shuld be pretty simple to achieve this goal. Simply use the WebPartManager.DisplayModeproperty to achieve this goal. This property checks if you are running in design mode. After that you can simply use the shared web part settings that helps you to set any customized webpart on a position onto the screen. You should also check if the webpart runs in design mode or not.