Ciao, avrei bisogno di un gentile aiuto da parte vostra.
La mia necessità è di utilizzare `UpdatePanel` in una pagina net dove ho previsto `SqlDataSource` e `Gridview`, tramite ajax tooltik.
Girovagando su google ho trovato un esempio che potrebbe fare al mio caso ma non riesco ad adattarlo, infatti non riesco a far convivere in `EditItemTemplate` le funzioni `OnClientClick` e `OnClient`.
Potreste darmi una mano a capire il problema.
Di seguito posto il codice ed approffito per ringraziarvi in anticipo ed augurarvi una felice Pasqua per Voi ed i vostri familiari.
codice:.... <script type="text/javascript"> var _popup; function validate(){ this._popup = $find('mdlPopup'); this._popup.show(); } </script> .... <form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> <div> SqlDataSource GridView <asp:TemplateField HeaderText=""> <ItemTemplate> <asp:ImageButton ID="ImageButton1" CommandName="Edit" Runat="Server" ImageUrl="/Images/edit.gif" ToolTip="edit" OnClientClick="return confirm('Confirm?');" /> </ItemTemplate> <EditItemTemplate> <asp:ImageButton ID="ImageButton2" CommandName="Update" Runat="Server" ImageUrl="/Images/update.gif" ToolTip="update" OnClientClick="return confirm('Confirm?');" OnClick="validate();" /> <asp:ImageButton ID="ImageButton3" CommandName="Delete" Runat="Server" ImageUrl="/Images/delete.gif" ToolTip="delete" OnClientClick="return confirm('Confirm?');" /> </EditItemTemplate> </asp:TemplateField> .... <ajaxToolKit:ModalPopupExtender ID="mdlPopup" runat="server" TargetControlID="pnlPopup" PopupControlID="pnlPopup" BackgroundCssClass="modalBackground" /> <asp:Panel ID="pnlPopup" runat="server" CssClass="updateProgress" style="display:none"> <div align="center" style="margin-top:13px;"> [img]/Images/ajax-loader.gif[/img] <span class="updateProgressMessage">Validate....</span> </div> </asp:Panel> </div> </form> Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1026: ) expected Source Error: Line 206: </ItemTemplate> Line 207: <EditItemTemplate> Line 208: <asp:ImageButton ID="ImageButton2" CommandName="Update" Runat="Server" Line 209: ImageUrl="/Images/update.gif" ToolTip="Update" Line 210: OnClientClick="return confirm('Confirm.');" OnClick="validate();" />