Click here to Skip to main content
15,904,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,
I'm using master-child page.In master page I have scriptmanager,updatepanel and progress image.In one child page I have a gridview and several controls. The gridview also has 2 drop down lists as template field.
My problem is :--- whenever the page control(outside grid)events are fired the progress image works fine during postback,but whenever the events of the gridview template field controls are fired the progress image not showing up. The postback happens and I get the desired result but processing image is not showing.

Please help me out ...
Posted
Updated 18-Dec-12 4:50am
v2
Comments
Rohit Shrivastava 18-Dec-12 12:12pm    
in case of grid events, you are getting full postback/partial? update panel works but progress image does not or update panel is not working? are you using any third party control or its asp.net grid view?
Molay Saha 18-Dec-12 20:51pm    
Hello Rohit,
I'm using asp:gridview , no other third party control. Update panel also working fine. The values inside the grid template controls are rendered properly. Only when the dropdownlist_selectedindexchanged event of the control inside grid template is fired, the page is posted back properly, but I don't see the processing image.For the other controls outside of grid the image shows fine. How to implement the image even for the postbacks caused by the template field controls' events.

1 solution

hi,
Follow these steps :-
a) On RowData Bound of Gridview,
b) Find Update Panel of Master Page & then add Asynchronous trigger to the update panel on dropdownlist's control id.
c) Register Startup Script, In startup Script, get PageRequestManager.getInstance & add initializeRquest & EndRequest.
d) In Initialize request find image set its style.display to block & in the end request set its style.display to none
 
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