asp.net UpdateProgress for Gridview that is triggered by a Button -
i want show updateprogress on page, when button clicked , while gridiew loading. however, want show loading image next button , not instead of gridview.
when button clicked, doesn't show updateprogress. missing code?
<asp:scriptmanager id="scriptmanager1" runat="server" /> <asp:updatepanel id="updatepanel1" runat="server" updatemode="conditional"> <contenttemplate> <asp:button id="okbutton" runat="server" text="ok" width="48px" onclick="okbutton_click" /> </contenttemplate> <triggers> <asp:asyncpostbacktrigger controlid="okbutton" eventname="click" /> </triggers> </asp:updatepanel> <asp:updateprogress id="updateprogress1" runat="server" displayafter="0" associatedupdatepanelid="updatepanel"> <progresstemplate><img scr="../images/wait.gif" /></progresstemplate> </asp:updateprogress> <asp:updatepanel runat="server" id="updatepanel2" updatemode="conditional"> <triggers> <asp:asyncpostbacktrigger controlid="okbutton" eventname="click" /> </triggers> <contenttemplate> <asp:gridview id="gridview1" runat="server".....> </asp:gridview> </contenttemplate> </asp:updatepanel> thanks reply...i trying upload image, however, unable so.. give idea:
- from date _.................| gridview
- to date __ ...................|
- ok button image..........|
i know not great. hope gives idea on how i'd place button on left side , gridview on right side on screen. "image" shows, i'd image of updateprogress placed, while gridvview loading content.
Comments
Post a Comment