PC Review


Reply
Thread Tools Rate Thread

Default User Login Page

 
 
rhynos77
Guest
Posts: n/a
 
      13th Apr 2008
Hi there

As per the script provided in article:
http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
password protected.

When a user attempts to open any of these pages, they are redirected to the
logon.asp page. When they successfully logon they are redirected to the
referring page (the page they were attempting to access originally).

I have a link to 'Your Profile' (protected). The user is referred to the
logon page, upon successfully logging in they a redirected to Your Profile.

I can't work out how to display the user's personal information on that page
- the database simply says 'No records found'.

Hoping someone can explain how to default this to display the user's
personal information.

Thanks

Ryan
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      13th Apr 2008
Are you saving their user ID upon login as a session variable, and using it to select their recordset from the db to display
- if so, show us a code snippet of your DB select statement and variables
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"rhynos77" <(E-Mail Removed)> wrote in message news:8DF5794E-F7E8-4926-AC7D-(E-Mail Removed)...
| Hi there
|
| As per the script provided in article:
| http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
| password protected.
|
| When a user attempts to open any of these pages, they are redirected to the
| logon.asp page. When they successfully logon they are redirected to the
| referring page (the page they were attempting to access originally).
|
| I have a link to 'Your Profile' (protected). The user is referred to the
| logon page, upon successfully logging in they a redirected to Your Profile.
|
| I can't work out how to display the user's personal information on that page
| - the database simply says 'No records found'.
|
| Hoping someone can explain how to default this to display the user's
| personal information.
|
| Thanks
|
| Ryan


 
Reply With Quote
 
rhynos77
Guest
Posts: n/a
 
      15th Apr 2008
Hi Stefan

In the DB Results Wizard I go to More Options>Defaults. The Name is "UID"
and in the Default Value Field I've entered "<% = session("UID") %>"

This creates this line in the code: fp_sDefault="UID=<% = session("UID") %>"

The funny thing is, I've created another form on a separate protected .asp
page, which posts to the profile.asp page. It has a hidden field named "UID"
and
the value is "<% = session("UID") %>".

One other thing - I'd ideally like the profile.asp page to run this query
automatically, but using both "UID" and "PWD" (userID and passwords) but I
can't work this out either.

Thanks in advance for your time.

Ryan

When you click on this, it runs the query on the profile.asp page, no problem.
"Stefan B Rusynko" wrote:

> Are you saving their user ID upon login as a session variable, and using it to select their recordset from the db to display.



> - if so, show us a code snippet of your DB select statement and variables
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "rhynos77" <(E-Mail Removed)> wrote in message news:8DF5794E-F7E8-4926-AC7D-(E-Mail Removed)...
> | Hi there
> |
> | As per the script provided in article:
> | http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
> | password protected.
> |
> | When a user attempts to open any of these pages, they are redirected to the
> | logon.asp page. When they successfully logon they are redirected to the
> | referring page (the page they were attempting to access originally).
> |
> | I have a link to 'Your Profile' (protected). The user is referred to the
> | logon page, upon successfully logging in they a redirected to Your Profile.
> |
> | I can't work out how to display the user's personal information on that page
> | - the database simply says 'No records found'.
> |
> | Hoping someone can explain how to default this to display the user's
> | personal information.
> |
> | Thanks
> |
> | Ryan
>
>
>

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      15th Apr 2008
You may find these links useful
http://www.frontpagehowto.com/newpassword/default.asp
and http://spiderwebwoman.com/thingumaji...ks.htm#passing

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"rhynos77" <(E-Mail Removed)> wrote in message news:9B58C494-98DC-4E70-B98E-(E-Mail Removed)...
| Hi Stefan
|
| In the DB Results Wizard I go to More Options>Defaults. The Name is "UID"
| and in the Default Value Field I've entered "<% = session("UID") %>"
|
| This creates this line in the code: fp_sDefault="UID=<% = session("UID") %>"
|
| The funny thing is, I've created another form on a separate protected .asp
| page, which posts to the profile.asp page. It has a hidden field named "UID"
| and
| the value is "<% = session("UID") %>".
|
| One other thing - I'd ideally like the profile.asp page to run this query
| automatically, but using both "UID" and "PWD" (userID and passwords) but I
| can't work this out either.
|
| Thanks in advance for your time.
|
| Ryan
|
| When you click on this, it runs the query on the profile.asp page, no problem.
| "Stefan B Rusynko" wrote:
|
| > Are you saving their user ID upon login as a session variable, and using it to select their recordset from the db to display.
|
|
| > - if so, show us a code snippet of your DB select statement and variables
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > "rhynos77" <(E-Mail Removed)> wrote in message news:8DF5794E-F7E8-4926-AC7D-(E-Mail Removed)...
| > | Hi there
| > |
| > | As per the script provided in article:
| > | http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
| > | password protected.
| > |
| > | When a user attempts to open any of these pages, they are redirected to the
| > | logon.asp page. When they successfully logon they are redirected to the
| > | referring page (the page they were attempting to access originally).
| > |
| > | I have a link to 'Your Profile' (protected). The user is referred to the
| > | logon page, upon successfully logging in they a redirected to Your Profile.
| > |
| > | I can't work out how to display the user's personal information on that page
| > | - the database simply says 'No records found'.
| > |
| > | Hoping someone can explain how to default this to display the user's
| > | personal information.
| > |
| > | Thanks
| > |
| > | Ryan
| >
| >
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open user default database. Login failed. Login failed for user 'HEMPC\ASPNET' Tony Johansson Microsoft ASP .NET 3 2nd Jan 2010 04:09 PM
Want user login to be the default login =?Utf-8?B?Zm9ydGVuYm0zMzM=?= Windows Vista Administration 1 17th Jun 2008 10:26 AM
how to redirect to a requested page instead of default page after login savvy Microsoft ASP .NET 7 18th Nov 2005 04:13 PM
login script default to user login name =?Utf-8?B?RG9uIERvZXJy?= Microsoft Windows 2000 Setup 3 8th Jun 2005 10:51 PM
How to nav. to a specific page after login page,not default.aspx =?Utf-8?B?UGF1bA==?= Microsoft ASP .NET 2 26th Mar 2004 12:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:44 AM.