Click here to Skip to main content
11,414,234 members (71,569 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Ajax ASP:NET
i have a masterpage and i put contentplaceholder in updatepanel ,page work fine in local but when i upload it on server if page leaved for 5 minutes and then click on linkbutton or image botton to do something,page just refreshed and then it's work!
what's the problem?!
Posted 6-Sep-12 0:03am
aspnet_regiis at 6-Sep-12 5:08am
So what is the question? at 6-Sep-12 5:23am
page refreshes ,thats the question
shahingmn at 6-Sep-12 5:38am
when page loaded complete all controls work's fine but if page leaved for five minute it's not work and when i click on link button page just refreshed!
aspnet_regiis at 6-Sep-12 8:28am
I think its a session timeout issue..
shahingmn at 7-Sep-12 3:53am
i don't think so...
aspnet_regiis at 7-Sep-12 4:51am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Puting Update panel in Master page is very bad idea . Since you need to write extra code to find the control and update it , once any post back or event happens to the page inside Master page

The best idea is to remove the update panel from master page and set it at page level with Updatemode=conditional , for uploading files and browse functionality you can add triggers , and u can update the panel once your event is fired and completed successfully

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,130
1 OriginalGriff 7,477
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084

Advertise | Privacy | Mobile
Web03 | 2.8.150427.2 | Last Updated 6 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100