Thanks for reply. But it will only handle message dialog box. I have attached a screenshot and in that images, as soon as I click on btnbtnClmLkpSearch, it will show popup message instead of searching. But what is happening is it is first searching, then showing me popup. Could you please help me in this requirement.