Print Page | Close Window

A really stupid question

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3512
Printed Date: 28 March 2026 at 5:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: A really stupid question
Posted By: ziwez0
Subject: A really stupid question
Date Posted: 13 June 2003 at 11:25am

Im on my way learning .net, but ive come to a snag,

in asp you can do a response.redirect ="whereEver.asp"

so how do you do it in .net?

<%@ Page Language="VB" %>
<script runat="server">

    Sub LoginBtn_Click(Sender As Object, E As EventArgs)
   
        If Page.IsValid Then
            If (UserName.Text = "test") And (UserPass.Text = "test") Then
                FormsAuthentication.RedirectFromLoginPage(UserName.Text, true)
            Else
                Msg.Text = "Invalid Credentials: Please try again"
            End If
        End If
   
    End Sub

</script>



-------------
If anything takes long to do its worth doing.



Replies:
Posted By: TYSON
Date Posted: 14 June 2003 at 10:50pm

Have you tried

<%@ Page Language="VB" %>
<script runat="server">

    Sub LoginBtn_Click(Sender As Object, E As EventArgs)
   
        If Page.IsValid Then
            If (UserName.Text = "test") And (UserPass.Text = "test") Then
                FormsAuthentication.RedirectFromLoginPage(UserName.Text, true)
                Response.Redirect("wherever.asp")
            Else
                Msg.Text = "Invalid Credentials: Please try again"
            End If
        End If
   
    End Sub

</script>



-------------
http://www.fuo-motorsports.com/ - http://www.fuo-motorsports.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net