|
 |
asp_databases thread: Frame pages
Message #1 by "Rakesh Parekh" <rakesh.parekh@j...> on Fri, 13 Sep 2002 09:47:49
|
|
Hello,
I have to show the database result in result.asp which is also having two
frame i.e. header.htm and left.htm. The result.asp will have header.htm in
header and left.htm on the left side of it. It looks like following. The
complete page of all this three frames is named default.asp. The default.asp
is as under:
header.htm
L|-------------
e| result.asp
f|
t|
.|
h|
t|
m|
Now I ask for the password in login.asp and if the password is correct then
I want to redirect the page to default.asp where result.asp should show the
result based on the password. My question is: What should I put in my
login.asp as action. If I put Action = result.asp then it only opens
result.asp instead of the complete framed page i.e. default.asp because
besides the result.asp page I also need to show the header.htm and left.htm.
If I set the action = default.asp then the password is not queried I don't
see any result in result.asp.
In short, I want to query something and open the result page which comprise
one or more frame.
Can anybody help?
Thanks,
Rakesh
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 13 Sep 2002 14:45:17 +1000
|
|
On login.asp post the form to itself. Verify the username/password is
correct. If it is correct, then:
a) mark the user as "authenticated"
b) persist the username/password (or UserID), eg as session variables
c) response.redirect to default.asp
On default.asp check to make sure the user is authenticated. If so, load the
frameset, if not, redirect to login.asp
On result.asp, use the UserID to populate the results.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rakesh Parekh" <rakesh.parekh@j...>
Subject: [asp_databases] Frame pages
:
: Hello,
:
: I have to show the database result in result.asp which is also having two
: frame i.e. header.htm and left.htm. The result.asp will have header.htm in
: header and left.htm on the left side of it. It looks like following. The
: complete page of all this three frames is named default.asp. The
default.asp
: is as under:
:
: header.htm
: L|-------------
: e| result.asp
: f|
: t|
: .|
: h|
: t|
: m|
:
: Now I ask for the password in login.asp and if the password is correct
then
: I want to redirect the page to default.asp where result.asp should show
the
: result based on the password. My question is: What should I put in my
: login.asp as action. If I put Action = result.asp then it only opens
: result.asp instead of the complete framed page i.e. default.asp because
: besides the result.asp page I also need to show the header.htm and
left.htm.
: If I set the action = default.asp then the password is not queried I don't
: see any result in result.asp.
:
: In short, I want to query something and open the result page which
comprise
: one or more frame.
:
: Can anybody help?
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |