If you are not able to connect to the Wifi network after disconnecting, the solution is simple.
Turn on the Airplane mode and wait for 10-15 seconds.
Then turn off the airplane mode.
Now you can connect to the Wifi with no problems.
If you are facing frequent disconnects from Wifi network, I also wrote a solution for this.
Read this : Solution to Wifi disconnects frequently on Windows 8