help plzzz...

Specified cast is not valid

If Not IsPostBack Then

Dim LastPage As LoginForm
===> LastPage = CType (Context.Handler, LoginForm) <===
txtID.Text = LastPage.Value

End If

how to solve this problem??

Where is context.handler coming from? I need a "bigger picture" of the code.

Nevermind about that. I have solved that problem by using query strings to pass values between web pages instead of using context.handler.
Anyway, thanks for the reply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.