Login Control Redirecting to Default.aspx

T

ThePurpleCat

Hi,

I've created a login page for my website that consists of only a Login
Control. The page inherits a master page that has a loginname and
loginstatus control.

In web.config I have the following section
<authentication mode="Forms">
<forms name="JTFORMAUTH" loginUrl="~/Logon.aspx"
cookieless="AutoDetect" />
</authentication>

This works fine on the first login, but if I click on "logout" in the
loginstatus control to redirect myself to the logon screen and logon
I'm redirected to ~default.aspx, and because my website does not have a
default.aspx page a "resource not found" error is generated.

What am I missing?

I'm a ASP.NET newbie so please be kind.

Thanks!
 

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,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top