I have had this problem now on more than one occasion and the first time I "fixed it" I don't really know what I did
because I ended up trying EVERYTHING including completely re-setting my iPad and removing all content etc.
However, today I think I found out more about my problem - I had tried removing security settings from my network but my iPad2 would still not connect (despite my laptop and iPhone both connecting fine !! I reset my network security settings again and that caused my laptop and other devices to "drop out" of the wifi network. This time I tried connecting my iPad 2 as the FIRST DEVICE and that worked.
This is not an ideal solution of course but I will try that again next time if it happens again. Hope this helps some of you !!