Arduino Uno with Dfrobot wifi shield Issue

Hi ,

I am using Arduino Uno with Dfrobot wifi shield, Model is wizfi210. I am facing one issue with the wifi sheild.
I can able to connect with wifi using serial monitor and i can able to send and receive the messages using putty. But whenever i used programming to search network or connect network or detect the wifi sheild then i am not able to connect with wifi shield. I am using Arduino examples.

I am getting confuse. Can you please sugggest me to solve it.

Thank you very much
Regards,
Sha.....