Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > OleDbConnection and (isNewSession=true) on first PostBack - bug!

Reply
Thread Tools

OleDbConnection and (isNewSession=true) on first PostBack - bug!

 
 
mtcc
Guest
Posts: n/a
 
      10-02-2005
i find out weird behavior or bug!

when i put connection on WebForm, and call fill on page_laod, i get
isNewSession=true on first PostBack!
when i declare new connection on my code in page_laod, i get
isNewSession=false on first PostBack as
we expect!


 
Reply With Quote
 
 
 
 
Mr Newbie
Guest
Posts: n/a
 
      10-02-2005
Post your Page_Load event code.



"mtcc" <(E-Mail Removed)> wrote in message
news:433fa04f$1@news.012.net.il...
>i find out weird behavior or bug!
>
> when i put connection on WebForm, and call fill on page_laod, i get
> isNewSession=true on first PostBack!
> when i declare new connection on my code in page_laod, i get
> isNewSession=false on first PostBack as
> we expect!
>



 
Reply With Quote
 
 
 
 
Derek Harmon
Guest
Posts: n/a
 
      10-02-2005
"mtcc" <(E-Mail Removed)> wrote in message news:433fa04f$1@news.012.net.il...
> when i put connection on WebForm, and call fill on page_laod, i get isNewSession=true on first PostBack!
> when i declare new connection on my code in page_laod, i get isNewSession=false on first PostBack as


Are you using in-proc SessionState (the default)? and if so, did you
notice the aspnet_wp working process get recycled? (If debugging,
in the Output Window you'd see a message that the original WP
thread was killed between the first page request and the first post
back.)

If you're observing both of these facts, then switching to a more
persistent store for SessionState like SQL Server keeps your
sessions from recycling when IIS recycles ASP.NET.


Derek Harmon


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing of OleDbConnection and OleDbDataReader. Is there a better way? Mel ASP .Net 1 08-02-2007 05:40 PM
Re: ASP.NET and OleDbConnection vMike ASP .Net 2 06-06-2005 06:20 AM
Postback not being set to True on first postback =?Utf-8?B?Q2hhZA==?= ASP .Net 2 04-04-2005 06:17 PM
Closing of OleDbConnection and OleDbDataReader Keith ASP .Net 1 12-11-2003 11:54 AM
Re: ASP.NET and OleDbConnection vMike ASP .Net 0 06-24-2003 03:56 PM



Advertisments