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!Post your Page_Load event code.
"mtcc" <mtcc456z@.yahoo.com> 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!
>
"mtcc" <mtcc456z@.yahoo.com> wrote in message news:433fa04f$1@.news.012.net.il...ed">
> when i put connection on WebForm, and call fill on page_laod, i get isNewS
ession=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
Thursday, March 22, 2012
OleDbConnection and (isNewSession=true) on first PostBack - bug!
Labels:
asp,
behavior,
bug,
bugwhen,
call,
connection,
fill,
getisnewsessiontrue,
isnewsessiontrue,
net,
oledbconnection,
page_laod,
postback,
postbackwhen,
webform,
weird
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment