Click here to Skip to main content
12,817,318 members (34,576 online)
Rate this:
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 5:48am
Updated 18-Dec-12 5:50am
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 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

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

Solution 1

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

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 20 Dec 2012
Copyright © CodeProject, 1999-2017
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