473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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!
Nov 19 '05 #1
2 1249
Post your Page_Load event code.

"mtcc" <mt******@yahoo.com> wrote in message
news:43********@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!

Nov 19 '05 #2
"mtcc" <mt******@yahoo.com> wrote in message news:43********@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
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anders Borum | last post by:
Hello! I've come across a strange behaviour in ASP.NET. If you're examining the property "HttpContext.Current.Session.IsNewSession" in a Page/UserControl, it always yields true, unless the...
3
by: Tyler Carver | last post by:
I am trying to use some dynamic controls that are built and then added to tables. The problem that I am having is the timing of when I can populate the controls and have the state remain after a...
4
by: Tim Mavers | last post by:
I am having a problem that I swore I read about a long time ago and it was a ..NET service-pack/hotfix bug. The problem right now is that whenever I try to postback on form, it simply does...
2
by: Chad | last post by:
Hi, I have a DropDownList webcontrol on a form with it's auto postback value set to true. The problem is it is not setting the postback value to true on the first postback, but on every postback...
2
by: Mirek Endys | last post by:
I miss the information about using an event like OnSessionStart in ASP.NET 2.0. and another problem, the property IsNewSession is still true and it seems like the session is new with each client...
3
by: stephenedavis | last post by:
I keep getting the error message "Invalid postback or callback argument" on my asp.net 2.0 pages in Internet Explorer. These pages are simple, and just to make sure there is nothing wrong with the...
2
by: rsouza | last post by:
Hi. Recently here in my work we added the following code in the Global.asax file to handled the session expired and redirect users to the home of the site explaining them the occurred (some...
1
by: zee | last post by:
Iam having problem with IsNewSession can any1 plz help me to run this code which is listed on many websites this is my code for validating session...
4
by: Zhangming Su | last post by:
Hi, Can any one tell me why Session.IsNewSession doesn't work with Firwfox broswer? Z. Su
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.