Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

AJAX .NET  timeout problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
00_DotNetWarrior - 30 Jul 2007 13:09 GMT
In my application, I use session to store some postback value. So, I solved
the standard ASP.NET session timeout  issue by doing these:

1. In web.config,  I used <sessionState> and set it to 12 hours with mode
set to "inproc"
2. On IIS win2003 level,  I set it "Idle recycle" value from default 20 min
to 12 hours under Application Pool.

It works fine. However, on AJAX .NET side,  I changed the
"AsyncPostBackTimeout" value in <asp:ScriptManager>, however this is more
like the "httpruntime" in web.config. It has nothing to do with session
timeout.

With the "AsyncPostBackTimeout" changed, when I tested this, I left the page
for 30 min and come back.  Click on one of my AJAX controls (just regular
page control, i.e. without Ajax it will postback), and I got the  NULL
javascript error.  Am I missing something?  Please help.

Thanks.

NB
bruce barker - 30 Jul 2007 16:35 GMT
AsyncPostBackTimeout is for timing out an ajax request. check the event
log to see if a recycle happened, or you are using forms authentication
and have the default 20 min timeout.

-- bruce (sqlwork.com)

> In my application, I use session to store some postback value. So, I solved
> the standard ASP.NET session timeout  issue by doing these:
[quoted text clipped - 17 lines]
>
> NB
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 30 Jul 2007 22:17 GMT
I had a similar issue and solved it by using ViewState instead of Session
state.
Depending on your requirements, this may work for you too.

Signature

I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

> In my application, I use session to store some postback value. So, I
> solved the standard ASP.NET session timeout  issue by doing these:
[quoted text clipped - 17 lines]
>
> NB

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.