The gridview "gvworklist" triggers the unprocessed event "rowdeleting ".
Note:An unhandled exception occurred during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details:System. Web. httpexception: The gridview "gvworklist" triggers the unprocessed event "rowdeleting ".
Source error:
An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception. |
Stack trace:
[Httpexception (0x80004005): The gridview "gvworklist" triggers the unprocessed event "rowdeleting".] System. web. UI. webcontrols. gridview. onrowdeleting (gridviewdeleteeventargs e) + 365 system. web. UI. webcontrols. gridview. handledelete (gridviewrow row, int32 rowindex) + 980 system. web. UI. webcontrols. gridview. handleevent (eventargs E, Boolean causesvalidation, string validationgroup) + 1533 system. web. UI. webcontrols. gridview. onbubbleevent (Object source, eventargs e) + 186 system. web. UI. control. raisebubbleevent (Object source, eventargs ARGs) + 70 system. web. UI. webcontrols. gridviewrow. onbubbleevent (Object source, eventargs e) + 136 system. web. UI. control. raisebubbleevent (Object source, eventargs ARGs) + 70 system. web. UI. webcontrols. linkbutton. oncommand (commandeventargs e) + 155 system. web. UI. webcontrols. linkbutton. raisepostbackevent (string eventargument) + 221 system. web. UI. webcontrols. linkbutton. system. web. UI. ipostbackeventhandler. raisepostbackevent (string eventargument) + 38 system. web. UI. page. raisepostbackevent (ipostbackeventhandler sourcecontrol, string eventargument) + 37 system. web. UI. page. raisepostbackevent (namevaluecollection postdata) + 289 system. web. UI. page. processrequestmain (Boolean includestagesbeforeasyncpoint, Boolean includestagesafterasyncpoint) + 4221 |
ASPX page:
<Asp: linkbutton id = "libtn_delete" runat = "server" text = "delete"Commandname = "delete"Commandargument = '<% # eval ("ID") %>'> </ASP: linkbutton>
Change delete In commandname = "delete" to another name, as long as it is not a Delete. You can also modify the corresponding background CS code.