you'd need to put your C# code in a seperate project/assembly since you
can't have Both in the same project.
Now the problem is...the ASP.NET project is VB and the other project is a C#
Class Library. How do you get to all the good HTTP Stuff with C#?
In your C# project, make sure there's a reference to the System.Web
Namespace.
To get the HTTP stuff, try
System.Web.HttpContext ctx = System.Web.HttpContext.Current;
from there, you can get the ctx.Session, ctx.Response, ctx.Request
(of if you want to be REALLY cool...)
System.Web.Ui.Page thePage = (System.Web.Ui.Page)ctx.Handler;
If you want to cast the handler into your specific type of page, you're
going to have to have more than 2 projects...otherwise you'd end up with a
circular reference.
"Justin" <Ju****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
I am using a 3rd party ecommerce application writen in VB.NET. I have
developed a couple c# addons that I would like to integrate into the
ecommerce site, more specifically I need to share session information
across the pages.
Can it be done?
Thanks, Justin.