redirect to page

G

Guest

I have written a web app that includes a login page. When a user
successfully logs in, they are taken to the main web app page. I have a
button on this page that I want to use to redirect the user to another page,
but i use a response.redirect statement behind the button, and when clicking
this, I am taken back to the login page instead of the new page I want to
goto. Help!
 
G

Guest

Button Code

Private Sub btnReport_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnReport.Click

Response.Redirect("reports.aspx")

End Sub

Section of Web Config Code

<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

</system.web>

<location path="school.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

</configuration>
 

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

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top