| .NET DotNet Forum Index » JScript .NET Forum » Writing values into collection.items from an ASP built-in ob |
|
Page 1 of 1 |
|
| 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"; |
|
|
| Back to top |
|
|
|
|