Hi,
Today I will Show How Share Sesison Between Aspx dotnet page and and Classic Asp and Other way Round using COM Build In Dotnet.
There Would Be many ways My is among one of them..
New Idea and Suggestion are Welcomed..
Rather Wasteing time Lets Starts....
Requirement(What I am Using to Build)
VS(2005,2008)
Dotnet Framework
IIS
and as Usual Little Bit of Interest
Lets Start
While Moving Forward I assume well Aware of Creating COM Using Dotnet
if Not Then Kindly Go My Blog of Hello World In COM
http://understandavinash.blogspot.com/2009/03/creating-com-from-csharp-and-vbnet.html
I have used HttpwebRequest in Dotnet.
But u can use XmlHttp Request in Clssic Asp
Know U know About Com Lets Start A had
Step1 :-
Create The Page In which All Sesison Would Be Taken in
Example: - U have 10 session Which U R using.
Just Acess All Required Session in Single Page
and Create Xml String Which Would Be Used
By Classic Asp..
Step 2:-
Know Add HttpRequest Functionality in Com file
Which In later Point Would Be Accessed from Com To Show Data
Of Sesison File from Aspx Page..
Same Functionality Can Get from XMLHTTPRequest...In
Classic Asp
Step3
Make Your HttpRequest Functionality Available
To COM Which In Turn Would Be used By Classic Asp
Step4 :-
Know Acess The Functionality Sesison and Coookie
In Classic Asp Which was Created In Aspx(dotnet)
Step5
Hope U Understood The Above Step Which
was Used to Take Data from Aspx Page
if u have not understood then Kindly Go trough
My Older Blog of How To
Create Hello world on COM
http://understandavinash.blogspot.com/2009/03/creating-com-from-csharp-and-vbnet.html
Know We will Got Create Sesison in Classic Asp
and use Aspx
Step6
Now See The Session Which Is Created
in Classic Asp and used in Aspx.
The Above U have See How acess the Sesison Code
and cookie from Aspx to Classic Asp and vice Versa
You Can download the Code
http://www.mediafire.com/?gyfure2jyy2
from above link
Hope it Help Some Body
http://www.mediafire.com/?gyfure2jyy2
Friday, March 20, 2009
Subscribe to:
Post Comments (Atom)
Please, write in proper english, without "U"s, "R"s...
ReplyDeleteThanks for Suggestion.
ReplyDeleteHi Avinash, Thank You so much for your helpfull article.However I am not able to implement this properly. Could you please give me an detailed description.
DeleteI have to pass session data from classis asp pages to aspx page.