473,326 Members | 2,023 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,326 software developers and data experts.

How to refer LoginUrl

ad

I have define a LoginUrl in Web.config like:
<authentication mode="Forms">
<forms name="HealthCookie" loginUrl="Login.aspx" protection="Validation"
timeout="99999">

How can I refer the LoginUrl with program?
Jan 8 '06 #1
2 1422
Hi ad,

In your configure setting, once an user requests any page in the
application, it will automatically redirect to Login.aspx. Once the user
successfully signs in, you can use

System.Web.Security.FormsAuthentication.RedirectFr omLoginPage

method to redirect to requested page.

HTH

Elton Wang

"ad" wrote:

I have define a LoginUrl in Web.config like:
<authentication mode="Forms">
<forms name="HealthCookie" loginUrl="Login.aspx" protection="Validation"
timeout="99999">

How can I refer the LoginUrl with program?

Jan 8 '06 #2
If you look at the URL in the browser's address textbox the login control
will also automatically return the person to the page that was loaded when
the login request was made.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Elton W" <El****@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
Hi ad,

In your configure setting, once an user requests any page in the
application, it will automatically redirect to Login.aspx. Once the user
successfully signs in, you can use

System.Web.Security.FormsAuthentication.RedirectFr omLoginPage

method to redirect to requested page.

HTH

Elton Wang

"ad" wrote:

I have define a LoginUrl in Web.config like:
<authentication mode="Forms">
<forms name="HealthCookie" loginUrl="Login.aspx"
protection="Validation"
timeout="99999">

How can I refer the LoginUrl with program?

Jan 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Hermit Dave | last post by:
Hi, I am making a web application (rather two applications) one which is host and used by customers when they are just browsing through products. The second application resides on a secure...
0
by: Hermit Dave | last post by:
Steven, Just a quick query.... in the two apps i have... it works fine on my local machine... but was talking to someone who was implementing a very similar method.... and it was then that i...
6
by: TJS | last post by:
i'm having problems where the user is not correctly redirected to login page if starting in a folder below the webroot. in these cases, it always tries to go to /foldername/login.aspx this is...
3
by: dgator | last post by:
Is it possible to have multiple LoginURL's. I have a situation where I have a certain url redirect into my secure web application. I have the specific login credentials handled fine. The users...
0
by: gabe | last post by:
Is there a way to read the loginURL attribute of the forms element in the web.config file? We have a standard Login.aspx page we use for custom authentication. When the site is down for...
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...
1
by: Arpan | last post by:
I have created a simple ASP.NET calculator in a ASPX page (which exists in C:\Inetpub\wwwroot\ASPX folder). Before allowing a user to access this calculator, I want to first find out whether the...
1
by: Jeff | last post by:
Hey asp.net 2.0 I created a simple helloworld website so I could tryout athentication in asp.net 2.0 Start page is Default.aspx. The problem is that when I start this web application I'm...
1
by: ad | last post by:
I have defined the LoginUrl and defaultUrl in web.config. <authentication mode="Forms"> <forms name="HealthCookie" loginUrl="Login.aspx" defaultUrl="Home.aspx" protection="Validation"> </forms>...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.