Hi narendrababu,
You can refer to example http://cutesoft.net/example/howto/AddDialogs/cs/create_a_custom_dialog.aspx , it shows you how to replace the selected content from the separate dialog.
Regards,
Ken