-edit- nevermind. I ran the code again and it appears i cant log into that first site anymore. It must have been a weird cache issue or something. Maybe i overlooked something. WebClient seems to ignore cookies so logging onto a site shouldnt work.
I figured out how to login to websites using WebClient. On the first website i tried i could login and the following pages would have my login data. On another site this was no the case and i had to do this http://couldbedone.blogspot.com/2007/08/webclient-handling-cookies.html
What is the rule about cookies in webclient and why does this site work only with the alternative webclient class?