Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 18-Dec-12 4:48am
Edited 18-Dec-12 4:50am
v2
Comments
Rohit Shrivastava at 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 at 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

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

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 Nirav Prabtani 268
1 OriginalGriff 217
2 Mika Wendelius 185
3 CPallini 170
4 _Amy 170
0 Nirav Prabtani 284
1 OriginalGriff 217
2 Mika Wendelius 185
3 _Amy 170
4 Sergey Alexandrovich Kryukov 154


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 20 Dec 2012
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