Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
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
Updated 21-Apr-13 21:00pm
v2
Comments
Raje_ 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 2-Jan-13 4:03am    
hello sangram...
_Amy 22-Apr-13 3:01am    
Did you tried passing ClientID of postbackcontrol?
[no name] 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.

Hi
try this..,


C#
UpdatePanel1.Update();



and a change the property of UpdatePanel1 to updatemode:conditional



Please Mark as Answer if find helpful..

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900