473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Default Login

158 100+
I'm developing a site where I need the user to view the site and then decide whether or not to log in. For some reason when I run my site in Visual Studio it automatically pulls up login.aspx (instead of default.aspx) I've attached the two files below.

Thanks in advance!!
Attached Files
File Type: txt default.aspx.txt (385 Bytes, 328 views)
File Type: txt login.aspx.txt (2.4 KB, 358 views)
File Type: txt web.config.txt (1.4 KB, 389 views)
Nov 18 '09 #1

✓ answered by Frinavale

I didn't look at your attachments, but the first thing that comes to mind is that you have placed the page that you want to let "unauthenticated" users view in a restricted folder in your website. If the user tries to access any restricted resources ASP.NET will redirect them to your login page (if you've configured it this way) to let the user log in.

If the unauthenticated users need to be able to access a resource (a web page in this case) then you need to place the web page in an unrestricted place.

-Frinny

2 1774
Frinavale
9,735 Expert Mod 8TB
I didn't look at your attachments, but the first thing that comes to mind is that you have placed the page that you want to let "unauthenticated" users view in a restricted folder in your website. If the user tries to access any restricted resources ASP.NET will redirect them to your login page (if you've configured it this way) to let the user log in.

If the unauthenticated users need to be able to access a resource (a web page in this case) then you need to place the web page in an unrestricted place.

-Frinny
Nov 18 '09 #2
Jollywg
158 100+
that was exactly what was wrong. Thanks for the help Frinavale!
Nov 23 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Aaron | last post by:
I'm trying to create a login in the default domain. I know I can pull this information from xp_loginconfig, but don't see how I can use it in the context of sp_grantlogin. For example, pull the...
3
by: Phil Certain | last post by:
Hi I'm building a site that has publicly available pages and password protected pages. Publicly available pages reside in: /public and password protected pages reside in: /private
4
by: JIM.H. | last post by:
Hello, I have a logon.apsx page and when I clicked LogOff button, user is directed to this page. For the first login user is able to go to myApp.aspx through logon.aspx but once he/she logs of and...
3
by: Robert Rotstein | last post by:
I have a homework assignment to create a simple web site and, in certain circumstances, to alter the default sequence of pages displayed -- for instance, if the user attempts to visit a page before...
2
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the...
3
by: cashdeskmac | last post by:
I have read that when using Forms Authentication, if you do not specify a value for the LoginUrl attribute it defaults to default.aspx. However, to test this, I create an application, add a new...
2
by: Lukas Kurka | last post by:
I have index.aspx and on that page i have login control and also other stuff. After I logged in, it redirects me to default.aspx which doesn't exist. Where can I change this stupid bahaviour? ...
6
by: jelle.huygen | last post by:
Hello, I've worked on a website in ASP.NET 2.0 where, on every page, login- button of a login control is set as the default button. The login- control is on the masterpage of the website. In...
7
by: Jonathan Wood | last post by:
My site requires all users to log on. Depending on the user's role, they will have access to a certain set of pages. I implemented this by redirecting the user to the appropriate home page in...
0
by: namrataa | last post by:
Cannot Open default database. Invalid login for \ -------------------------------------------------------------------------------- Hi, I have written services in WCF using C# and SQL Server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.