Main Page | Report this Page
.NET DotNet Forum Index  »  JScript .NET Forum  »  Writing values into collection.items from an ASP built-in ob
Page 1 of 1    

Writing values into collection.items from an ASP built-in ob

Author Message
Fabrizio Cipriani
Posted: Fri Feb 23, 2007 12:31 pm
Guest
How do I write a value into a collection item which I get from classic ASP
built-in objects?

for example:

// get ASP context
var oMTS = new ActiveXObject("MTxAS.AppServer.1");
var objctx = oMTS.GetObjectContext();

// This works fine
objctx.Item("Response").Write("Calling a method works");

// None of these will work
objctx.Item("Session").Contents.Item("StoredValue") = "a";
objctx.Item("Session").Contents.put_Value("StoredValue", "a");
objctx.Item("Session").Contents("StoredValue") = "a";
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Wed Mar 17, 2010 12:16 am