Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello Experts,
I am stuck on a problem. I am using __doPostBack(MyUpdatePanelId,"")to upadte update panel. All working fine but when i am refresh page it's not refresh properly and previous state is obtained.
Plz help me to detect solution for this problem.
 
[Solution 2]
In my javascript code I am passing ID of postbackcontrol which returns 'undefined' so thats why this error occures.
[/Solution 2]
Posted 1-Jan-13 19:38pm
Edited 21-Apr-13 22:00pm
_Amy51.5K
v2
Comments
Raje_ at 2-Jan-13 0:47am
   
try calling updatepanel1.Update(); method when refreshing the page. here updatepanel1 is the id of your updatepanel.
prashant patil 4987 at 2-Jan-13 4:03am
   
hello sangram...
_Amy at 22-Apr-13 3:01am
   
Did you tried passing ClientID of postbackcontrol?
Ramanjaneya002 at 22-Apr-13 3:04am
   
Try to pass correct ID of postbackcontrol.
If master page is available then some id will add to postbackcontrol id so check it once.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi
 
try this..,
 

UpdatePanel1.Update();
 

and a change the property of UpdatePanel1 to updatemode:conditional
 

 
Please Mark as Answer if find helpful..
 
Happy coding...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

In my javascript code I am passing ID of postbackcontrol which returns 'undefined' so thats why this error occures.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 325
1 DamithSL 300
2 Sergey Alexandrovich Kryukov 289
3 CPallini 235
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 22 Apr 2013
Copyright © CodeProject, 1999-2014
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