Re: How to redirect page in windows application?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Clamps (Clamps_at_RobotMafia.Futurama.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 15:33:35 -0600

The best route to go with logins is to use your main.vb to instantiate an instance of
"Login" ,
do your validation in the login.vb, then return control to main.vb like so....

'in the load event of Main.vb
dim x as new login
x.showdialog()

<showdialog forces you to be close the form before it returns control>
x.show() will work too, but the form isn't modal

"JenHu" <jenniferhu46@hotmail-dot-com.no-spam.invalid> wrote in message
news:41acde71$1_1@Usenet.com...
| Hi all,
|
| I have to ask a stupid question:
|
| In asp.net, I use Response.Redirect ("Main.aspx") to redirect pages,
| but what is the syntax of redirect forms in vb.net windows
| application?
|
| I have a login page, after clicked "login", it will direct the page to
| main.vb, but error says "response is not declared".......
| Thanks.
|
| *-----------------------*
| Posted at:
| www.GroupSrv.com
| *-----------------------*



Relevant Pages

  • RE: Macro to VBA
    ... Database Administrator ... Dim Ret as Long 'Return Value ... Static iLogAttempts as Integer 'Number of Login Attempts ... 'Save the logged user to somwhere, in this case to a control on form Home ...
    (microsoft.public.access.modulesdaovba)
  • Re: Forms Authentication without Login Page
    ... OK thanks Brad. ... pressing a login button. ... invokes methods on the control to do the login. ... > Request.IsAuthenticated will be true for the entire request context. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Website Administrator writes two instances of each user into the database
    ... After installing Visual Studio and SQL Express RTM my ... the login link was selected on the homepage. ... So this all made me suspicious and I went into the database and observed ... It was interesting to note the login control would then load ...
    (microsoft.public.vsnet.ide)
  • Website Administrator writes two instances of each user into the database
    ... After installing Visual Studio and SQL Express RTM my ... the login link was selected on the homepage. ... So this all made me suspicious and I went into the database and observed ... It was interesting to note the login control would then load ...
    (microsoft.public.dotnet.general)
  • Re: Forms Authentication without Login Page
    ... Thanks Brad! ... the authentication seems to be delayed by one page view: ... hit Login in my login control. ... and my login control calls ...
    (microsoft.public.dotnet.framework.aspnet.security)