Click here to Skip to main content
16,005,149 members
Home / Discussions / C#
   

C#

 
QuestionGetting Private Key from a Certificate. Pin
MalikRizwan31-Oct-05 21:12
MalikRizwan31-Oct-05 21:12 
QuestionRemoving components Pin
picasso231-Oct-05 20:34
picasso231-Oct-05 20:34 
AnswerRe: Removing components Pin
Wjousts1-Nov-05 2:09
Wjousts1-Nov-05 2:09 
Questionbug of vs.net 2005 beta 2 Pin
rushing31-Oct-05 19:53
rushing31-Oct-05 19:53 
QuestionPage attribute & concurrency Pin
sgatto15931-Oct-05 19:11
sgatto15931-Oct-05 19:11 
AnswerRe: Page attribute & concurrency Pin
leppie31-Oct-05 21:26
leppie31-Oct-05 21:26 
GeneralRe: Page attribute & concurrency Pin
sgatto15931-Oct-05 21:50
sgatto15931-Oct-05 21:50 
AnswerRe: Page attribute & concurrency Pin
leppie31-Oct-05 22:09
leppie31-Oct-05 22:09 
zu78 wrote:
for every request it creates an object from that class, serve the request, destroy the object ?


AFAIK yes, silly isnt it?

static instances are persisted on application level, but be aware ASP.NET tends to go into 'sleep' mode and the values get reset.

Other option is to use the Session object. You can just save object instances there that will be persisted for the current session of the user, which is porbably what you are looking for Smile | :)

Eg:
string id = Session["login"] as string;
...


xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
GeneralRe: Page attribute & concurrency Pin
sgatto1591-Nov-05 0:03
sgatto1591-Nov-05 0:03 
GeneralRe: Page attribute & concurrency Pin
J4amieC1-Nov-05 0:05
J4amieC1-Nov-05 0:05 
NewsRe: Page attribute & concurrency Pin
leppie1-Nov-05 0:38
leppie1-Nov-05 0:38 
GeneralRe: Page attribute & concurrency Pin
J4amieC4-Nov-05 8:26
J4amieC4-Nov-05 8:26 
QuestionITEMIDLIST With IShell dilema Pin
RockmanHero200331-Oct-05 18:29
RockmanHero200331-Oct-05 18:29 
Questionwinmm.dll and playing cda files Pin
Tdrock31-Oct-05 15:02
Tdrock31-Oct-05 15:02 
QuestionDynamic Buttons C# ASP.NEt Pin
TheMajorRager31-Oct-05 13:10
TheMajorRager31-Oct-05 13:10 
AnswerRe: Dynamic Buttons C# ASP.NEt Pin
enjoycrack31-Oct-05 13:29
enjoycrack31-Oct-05 13:29 
AnswerRe: Dynamic Buttons C# ASP.NEt Pin
Christian Graus31-Oct-05 13:37
protectorChristian Graus31-Oct-05 13:37 
GeneralRe: Dynamic Buttons C# ASP.NEt Pin
TheMajorRager31-Oct-05 14:13
TheMajorRager31-Oct-05 14:13 
GeneralRe: Dynamic Buttons C# ASP.NEt Pin
Christian Graus31-Oct-05 14:30
protectorChristian Graus31-Oct-05 14:30 
QuestionMSMQ ; Message needs to be encrypted Pin
kotteeswaran31-Oct-05 11:21
kotteeswaran31-Oct-05 11:21 
AnswerRe: MSMQ ; Message needs to be encrypted Pin
Christian Graus31-Oct-05 11:32
protectorChristian Graus31-Oct-05 11:32 
GeneralRe: MSMQ ; Message needs to be encrypted Pin
kotteeswaran31-Oct-05 11:58
kotteeswaran31-Oct-05 11:58 
GeneralRe: MSMQ ; Message needs to be encrypted Pin
Christian Graus31-Oct-05 12:09
protectorChristian Graus31-Oct-05 12:09 
GeneralRe: MSMQ ; Message needs to be encrypted Pin
kotteeswaran31-Oct-05 12:19
kotteeswaran31-Oct-05 12:19 
GeneralRe: MSMQ ; Message needs to be encrypted Pin
Christian Graus31-Oct-05 12:24
protectorChristian Graus31-Oct-05 12:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.