🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.aspdotnet.general
Article #9

Re: how to keep object session?

#9
From: century
Date: Tue, 20 Jul 2004 01:11
40 lines
1743 bytes
Yes, as following:

Page1:
testClass el = new testClass();

Session["comobj"] = el;
....
Page2:
testClass te = (testClass)Session["comobj"];
String strVersion = te.login("DOTNET","  Welcome");
Response.Write(strVersion);



But  Session["test"] is not  viable .

Thanks,

"Marc Rohloff [TeamB]" <"on request">
??????:1opwugyw8fhj4$.dlg@marcrohloff.40tude.net...
> On Mon, 19 Jul 2004 13:22:27 +0800, century wrote:
>
> > I use com object in aspx page,
> > but how to keep this object session, then I can invoke it in second
page.
> > (Page Language="C#")
>
> You mean:
> Page1:
>  session["comobj"] = yourComObject;
>
> Page2:
>   ComObject yourComObject = (ComObject)Session["comobj"]
>
> ?
>
>
> --
> Marc Rohloff [TeamB]
> marc rohloff at myrealbox dot com
Technical Details
Message-ID: <40fc714f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40fb5a94@newsgroups.borland.com> <1opwugyw8fhj4$.dlg@marcrohloff.40tude.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,3fc5c89ce071515f
X-Google-Attributes: gid124d48,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "century" <csicentury@yahoo.com.cn>
Newsgroups: borland.public.csharpbuilder.aspdotnet.general
References: <40fb5a94@newsgroups.borland.com> <1opwugyw8fhj4$.dlg@marcrohloff.40tude.net>
Subject: Re: how to keep object session?
Date: Tue, 20 Jul 2004 09:11:47 +0800
Lines: 42
Organization: lkxx
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 221.226.197.118
Message-ID: <40fc714f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090285903 221.226.197.118 (19 Jul 2004 18:11:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail