In ASP.Net, when i entered the url in address bar,.. it redirects to the main page without going to login page,..

It should go to the login page,.. then by after getting the login information only it redirects to main page,..

can anyone help me?

Recommended Answers

All 2 Replies

Set authorization element in web.config.

<authorization>
   <deny user="?"/>
</authorization>

<allow users ="*" >

commented: Missed! +9
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.