vb Re-direct script

  • Thread starter Thread starter Dam6
  • Start date Start date
D

Dam6

Evenin,

The code re-directs to a default.aspx page but what would I add to direct to
another page? (Thanks all)

<%
if dsLogin.RecordCount > 0 then
Session("sessUsername") = Request.Form("tfUsername")
FormsAuthentication.RedirectFromLoginPage("tfUsername.value", true )
else if ((Request.Form("tfUsername"))) <> Nothing OR
((Request.Form("tfPassword"))) <> Nothing
response.Write("Login Failed. Please Try Again.")
end if
%>
 
I'm not sure I understand, but you should simply be able to do a
response.redirect as you always would. If you need to set an authentication
cookie use SetAuthCookie.

Karl
 
Found what was wrong from the books appended mistakes page while looking on
the web:

forms name = " SECAUTH " loginUrl="login.aspx">
not
forms name = " .SECAUTH " loginUrl="login.aspx">

take out the full stop and it all works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top