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
Saturday, March 14, 2009
Hello World ActiveX
Hi ,
Again Came with Some Problem Regarding ActiveX in Csharp .. If Finding and Doing Some Google I Came Across Some Good Changelling Secnerio..
I have Create ActiveX Control.. Know I will Show U Step By Step How To Create ActiveX Control in Csharp ...
Requirement
1} Vs2005,Vs2008
2}IIS
3}Bit of Interest for Doing Some New Things..
Lets Start...
1} First Select The .Dll Project From Visual Studio Project..
2} Now Delete The Default CS File Createad By Visual Studio.
3} Know Adding User Control On Project
4} Know Creating User Interface On User Contol
5} Know Making It COM Visible
6} Register COM to Interop
Project--->Proprites->Build
Done and Complie The project
Know How To Acess In Html,Asp,Aspx etc Page
1} When Page Is Acesssed on IE (It will or may not work in Non-IE Browser)
2} Know Pasing Data From Html and Passing Back the ActiveX Control
Note: U have Create Virtual Direcorty to Run The Sample
and U can download the Source Code Mention Below
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1cc88d80740a24ef7c5be6ba49b5870170
Hope It Helps Some Body..
Again Came with Some Problem Regarding ActiveX in Csharp .. If Finding and Doing Some Google I Came Across Some Good Changelling Secnerio..
I have Create ActiveX Control.. Know I will Show U Step By Step How To Create ActiveX Control in Csharp ...
Requirement
1} Vs2005,Vs2008
2}IIS
3}Bit of Interest for Doing Some New Things..
Lets Start...
1} First Select The .Dll Project From Visual Studio Project..
2} Now Delete The Default CS File Createad By Visual Studio.
3} Know Adding User Control On Project
4} Know Creating User Interface On User Contol
5} Know Making It COM Visible
6} Register COM to Interop
Project--->Proprites->Build
Done and Complie The project
Know How To Acess In Html,Asp,Aspx etc Page
1} When Page Is Acesssed on IE (It will or may not work in Non-IE Browser)
2} Know Pasing Data From Html and Passing Back the ActiveX Control
Note: U have Create Virtual Direcorty to Run The Sample
and U can download the Source Code Mention Below
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1cc88d80740a24ef7c5be6ba49b5870170
Hope It Helps Some Body..
Wednesday, March 11, 2009
Hi,
The Below Mention Link Contains HELLO WORLD Like Program for Creating Csharp to COM Object..
http://understandavinash.blogspot.com/2009/03/creating-com-from-csharp-and-vbnet.html
U can Download The Source Code from follwing Link
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1ce04e75f6e8ebb871
The Below Mention Link Contains HELLO WORLD Like Program for Creating Csharp to COM Object..
http://understandavinash.blogspot.com/2009/03/creating-com-from-csharp-and-vbnet.html
U can Download The Source Code from follwing Link
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1ce04e75f6e8ebb871
Tuesday, March 10, 2009
Simple Insert, Update, And Delete, Using Csharp COM
Hi,
Few Days Back I was Assigned work To Create Something for classic Asp After Some Gooooogling i have not found solution as I want..I got in Bit and Pieces..
So i Deceided to Write Simple Code for Data Interaction in Csharp and which is used in
Classic Asp..
This Bloog Contains Simple Insert Update and Delete in Classic asp With Csharp
Let Starts ...
What We Reuiquire????....
1} Windows Machine(having IIS Support)
2}VS2008,VS2005 or Dotnet Framework(2.0,3,3.5)
3}SqlServer2000,Sqlserver2005
4} More Than Anyting INTEREST IN DOING THING..
LET START THE Process..
Step1 } Open Project Select DLL Project
2} Once U have added Project Add One Class File of Insert,Update and Delete I have Only Added For Insert Record
3} Know Adding DataBase in Your Sqlserver2000
4}Creating a Table in Which Data Would Be Stored
5} Know Adding Website For Debugging in dotent Enviroment
So That we can debug our COM before Deployment
6} Know Refernceing DLL In Your DebugProject
8} Know Making Your DLL COM VISIBLE
9} Know Creating Strong Key for DLL
Go start->Vs2008->Tools->cmd
10} Know Adding Strong Key To Application
11} Know Registrating Dll Into Reistery There Command Regasm /code base
12} Know Reistring Your DLL In GAC
13} Know Seeing Message When Data Is Sucessfully Entered.. I had Only Shown a Sample For Insert
14} If Error Ocuurs The Message Seen Is
15} Know Unregistraing Your Dll From Resitry (Or using Regasm)
16} Know Unstialling Your Dll From GAC
Know U have Follwed Whole Step..For Creating COM In Chsarp
Alway Rember To restart The IIS Every Time U Register or UnRegister
The DLL On Server
You Can Download Complete Source Code from
Follwing Link:--
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1ce04e75f6e8ebb871
Few Days Back I was Assigned work To Create Something for classic Asp After Some Gooooogling i have not found solution as I want..I got in Bit and Pieces..
So i Deceided to Write Simple Code for Data Interaction in Csharp and which is used in
Classic Asp..
This Bloog Contains Simple Insert Update and Delete in Classic asp With Csharp
Let Starts ...
What We Reuiquire????....
1} Windows Machine(having IIS Support)
2}VS2008,VS2005 or Dotnet Framework(2.0,3,3.5)
3}SqlServer2000,Sqlserver2005
4} More Than Anyting INTEREST IN DOING THING..
LET START THE Process..
Step1 } Open Project Select DLL Project
2} Once U have added Project Add One Class File of Insert,Update and Delete I have Only Added For Insert Record
3} Know Adding DataBase in Your Sqlserver2000
4}Creating a Table in Which Data Would Be Stored
5} Know Adding Website For Debugging in dotent Enviroment
So That we can debug our COM before Deployment
6} Know Refernceing DLL In Your DebugProject
8} Know Making Your DLL COM VISIBLE
9} Know Creating Strong Key for DLL
Go start->Vs2008->Tools->cmd
10} Know Adding Strong Key To Application
11} Know Registrating Dll Into Reistery There Command Regasm
12} Know Reistring Your DLL In GAC
13} Know Seeing Message When Data Is Sucessfully Entered.. I had Only Shown a Sample For Insert
14} If Error Ocuurs The Message Seen Is
15} Know Unregistraing Your Dll From Resitry (Or using Regasm)
16} Know Unstialling Your Dll From GAC
Know U have Follwed Whole Step..For Creating COM In Chsarp
Alway Rember To restart The IIS Every Time U Register or UnRegister
The DLL On Server
You Can Download Complete Source Code from
Follwing Link:--
http://www.mediafire.com/?sharekey=5082eaf05dd192a9c79b87b207592a1ce04e75f6e8ebb871
Subscribe to:
Posts (Atom)