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

Passing Data From ASP to ASP.NET

I'm looking for the best way to pass login data from a SingleSignOn
page (written in ASP) to a page in my application (written in ASP.NET).
I'm using Roles-Based FormsAuthentication in my app, but I can't
create the cookie until I have the user's LoginID. So, I'm looking for
a way to retrieve the entered LoginID from the SingleSignOn ASP page in
the Page_Load event of my Start.aspx page. Hope this makes sense...

I can't use the QueryString due to the sensitive nature of the data.
Unfortunately, I don't have any control over the ASP page group, so I
can't suggest they do anything *radically* different than they are now.
They're basically calling my Start.aspx page using a POST via an HREF
tag.

I've read conflicting opinions on whether or not I can use the Request
or even the context.Request objects. Is there truly a way to use
either of these and if so, how? I've tried both but to no avail. Any
alternative solutions?

The thing is....I doubt this SingleSignOn ASP app will be around for
much longer, so I'm fishing for a relatively easy fix to what I hope
will be a temporary problem.

Thank you in advance for any advice you can offer.
Jim

Jun 22 '06 #1
4 1102
I don't see why you wouldn't be able to put that information in a
cookie, despite the fact that it is 'sensitive' as you describe. You
shouldn't have any problem setting a cookie in ASP and reading that
cookie in ASP.NET, at least not if the cookie just contains a number,
and the they are in the same root folder (so that they are in the same
domain, for the cookies).

-Scott

jp******@gmail.com wrote:
I'm looking for the best way to pass login data from a SingleSignOn
page (written in ASP) to a page in my application (written in ASP.NET).
I'm using Roles-Based FormsAuthentication in my app, but I can't
create the cookie until I have the user's LoginID. So, I'm looking for
a way to retrieve the entered LoginID from the SingleSignOn ASP page in
the Page_Load event of my Start.aspx page. Hope this makes sense...

I can't use the QueryString due to the sensitive nature of the data.
Unfortunately, I don't have any control over the ASP page group, so I
can't suggest they do anything *radically* different than they are now.
They're basically calling my Start.aspx page using a POST via an HREF
tag.

I've read conflicting opinions on whether or not I can use the Request
or even the context.Request objects. Is there truly a way to use
either of these and if so, how? I've tried both but to no avail. Any
alternative solutions?

The thing is....I doubt this SingleSignOn ASP app will be around for
much longer, so I'm fishing for a relatively easy fix to what I hope
will be a temporary problem.

Thank you in advance for any advice you can offer.
Jim


Jun 22 '06 #2
Jim
Thank you for the suggestion Scott. I agree and will certainly pass
this along to the other group...I'm hoping they'd be willing/able to do
what you suggest.

I'm guessing by your answer that the Request object is a no-go? It
would be ideal if there was something I could do solely within the
confines of my app.

Thanks again,
J

Jun 22 '06 #3
Jim -

The request object (i assume you mean using a POST form on the classic
ASP page and then requesting it using Request.Form in asp.net) is
definitely a no-no. I tested it today.

The only difference I've found in cookies between asp.net and classic
ASP is that with any characters besides numbers classic asp does the
equivalent of a Server.URLEncode on the value of the cookie before
putting it in the cookie - asp.net does not. I've found it is still
relatively simple to create cookies in asp.net that the classic asp
page can read easily (again, as long as they are withing the same
domain, usually you have the ASP pages at http://localhost/default.asp
and the ASP.NET in http://localhost/asp.netproject/default.aspx)

-Scott
Jim wrote:
Thank you for the suggestion Scott. I agree and will certainly pass
this along to the other group...I'm hoping they'd be willing/able to do
what you suggest.

I'm guessing by your answer that the Request object is a no-go? It
would be ideal if there was something I could do solely within the
confines of my app.

Thanks again,
J


Jun 23 '06 #4
jim
Scott,

RE: the Request object...that's kinda what I thought my answer would
be. We'll see what we can do about having them create a cookie in
their ASP app that I'll be able to use in my ASP.NET app.

Thanks for taking the time out to research and reply.

Kind regards,
J

Jun 23 '06 #5

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

Similar topics

8
by: Alex Vinokur | last post by:
Various forms of argument passing ================================= C/C++ Performance Tests ======================= Using C/C++ Program Perfometer...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
9
by: Just Me | last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in. Is the "ref" correct or since only a pointer is being passed should it be by value? Suppose I was passing data rather then...
3
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers:...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
12
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
3
by: DaTurk | last post by:
If I call this method, and pass it a byte by ref, and initialize another byte array, set the original equal to it, and then null the reference, why is the original byte array not null as well? I...
3
by: iu2 | last post by:
Hi all, I need your professional opinion about this. It is more a general programming dilemma rather then a C++ one, but since the project I write is in C++... We handle big structs of data....
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
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.