Classic ASP to ASP.Net migration question

G

Gary Morris

Hello all,

I know this is probably fairly easy, but I want to find out the
BEST way to do it. We're in the process of upgrading from
ASP to ASP.Net. The first project on the list is the login pages,
and they have already been converted to .Net. The pages from
which login.aspx is linked are either classic ASP or just plain
HTML. We use an image and link like this:

<a href="_private/login.aspx">
<img border="0" src="_borders/Login.gif"
xthumbnail-orig-image="../images/Login.gif" width="60" height="25"
align="right">
</a>

which works just fine to get there. Once there, the username and
password are entered, then verify.aspx validates the user. If the
user does not have an account, he/she is able to click another link
that lets them create an account. On creation, they are then
logged in. What we want is to return the user to the page they
were on when they clicked LOGIN. I was thinking of just using
session information, but I've been told that you cannot do that
when mixing ASP and ASP.Net, so I need another way.

Can anyone make some suggestions as to the best way to do this?
Or, direct me to a resource that will give examples. We do NOT
want to use cookies, as some people are paranoid and will not use
them.

Thanks.
 
G

Gary Morris

Lucas Tam said:
Why not append the URL to the Querystring.

I did try that, and it works OK. I was hoping for something more elegant,
as I have to keep passing it to each page. If someone is NOT a user, and
they click on the link to create an account, then I have to pass it to THAT
page, etc. It's a hassle at best.

Another thing I'm trying to do is come up with a generic way to get the
calling page's name, i.e.:

<a href="login.aspx?retloc=application.asp">

I tried to figure out a way to do this for both ASP and HTML pages, that
is:

<a href="login.aspx?retloc= [somehow dynamically insert page name] ">

Otherwise, I have to open up dozens of pages and manually type each
name in rather than just pasting in the same code.

Anyone know how to do this, if possible at all?
 
G

Gary Morris

Update:

I finally just went with the querystring, and the way I got around
opening and editing each page was to just write a VB routine to
open up each page, search for the button and replace it with the
code and page name. Worked like a champ. Sneaky, eh?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top