Calling a webpage from EventHandler

Hi,
I am trying out my first Xojo web application. I have two web pages. The page is a login page and once we enter credentials, I use a httpSocket to check the login and want to call homepage if successful.
Now, on the PageReceived for httpSocket.Post() has this code.

if httpStatus <> 200 then MsgBox("Login failed! "+ content) else Homepage.Show end if

I am getting a NilObjectException on the Homepage.Show
What am I doing wrong here?

Also, I am not able to see the Project Controls category in the Inspector tab? Why is that?

[quote=242318:@Narayan Babu]Hi,
I am trying out my first Xojo web application. I have two web pages. The page is a login page and once we enter credentials, I use a httpSocket to check the login and want to call homepage if successful.
Now, on the PageReceived for httpSocket.Post() has this code.

if httpStatus <> 200 then MsgBox("Login failed! "+ content) else Homepage.Show end if

I am getting a NilObjectException on the Homepage.Show
What am I doing wrong here?

Also, I am not able to see the Project Controls category in the Inspector tab? Why is that?[/quote]

The session is not available in sockets events. See http://documentation.xojo.com/index.php/WebSessionContext to bring the session into your event so you can use showURL.