首页 > 编程语言 >'GridViewDeletedEventArgs '末包含' RowIndex "的定义,并且找不到可接受第一 个"GridViewDeletedE

'GridViewDeletedEventArgs '末包含' RowIndex "的定义,并且找不到可接受第一 个"GridViewDeletedE

时间:2023-07-26 14:00:13浏览次数:38  
标签:RowIndex List RowDeleting GridViewDeleteEventArgs using GridViewDeletedEventArgs

 

页面中设置了“ OnRowDeleting="List_RowDeleting" DataKeyNames="id"”

后台代码为:
行 178: protected void List_RowDeleting(object sender, GridViewDeletedEventArgs e)
行 179: {
行 180: string id = this.List.DataKeys[e.RowIndex].Value.ToString();
行 181: SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLCONNECTIONSTRING"].ConnectionString);
行 182: con.Open();   原因:参数错误,应该是GridViewDeleteEventArgs   RowDeleted事件是GridViewDeletedEventArgs
RowDeleting事件是GridViewDeleteEventArgs

标签:RowIndex,List,RowDeleting,GridViewDeleteEventArgs,using,GridViewDeletedEventArgs
From: https://www.cnblogs.com/Dongmy/p/17582284.html

相关文章

  • Using PL/SQL Object Types for JSON
    #https://docs.oracle.com/en/database/oracle/oracle-database/12.2/adjsn/using-PLSQL-object-types-for-JSON.html#GUID-F0561593-D0B9-44EA-9C8C-ACB6AA9474EEDECLAREjeJSON_ELEMENT_T;joJSON_OBJECT_T;BEGINje:=JSON_ELEMENT_T.parse('{"name......
  • kettle连接数据库报错:Error connecting to database: (using class org.gjt.mm.mysql.
    kettle连接MySQL报错但已经把相应的包放到kettle的lib目录下时,仍然报连接不上的错误,那可能是MySQL时区的问题。解决如下:登入MySQL修改为东八区的命令:方法一:mysql>setglobalmax_allowed_packet=1024*1024;mysql>setglobaltime_zone='+8:00';方法二:修改my.ini文件,在[mysql......
  • HDFS High Availability Using the Quorum Journal Manager
    HDFSHighAvailabilityUsingtheQuorumJournalManagerHDFSHighAvailabilityUsingtheQuorumJournalManagerPurposeNote:UsingtheQuorumJournalManagerorConventionalSharedStorageBackgroundArchitectureHardwareresourcesDeploymentConfigurationoverv......
  • 在cmd中使用pip命令出现报错Fatal error in launcher: Unable to create process usin
    1. 我找到了之前安装python的安装包,进行了修复2.然后在cmd中输入了wherepip看看是否有重复的pip路径发现没有3.重新尝试打开cmd后输入命令问题就解决了 ......
  • Linux - Check If File Is Empty Or Not Using Shell Script
    Linux-CheckIfFileIsEmptyOrNotUsingShellScriptHowdoIcheckifafileisemptyornotusingbashorkshshellscriptunderaUNIX/Linux/macOS/OSX/BSDfamilyofoperatingsystems?HowdoIcheckifafileisemptyinBash?Youcanuse......
  • android studio Using insecure protocols with repositories, without explicit
    如何解决"androidstudioUsinginsecureprotocolswithrepositories,withoutexplicit"的问题简介在使用AndroidStudio开发过程中,我们可能会遇到"Usinginsecureprotocolswithrepositories,withoutexplicit"的问题。这个问题通常是由于AndroidStudio的默认配......
  • CF1083F The Fair Nut and Amusing Xor
    简要题意:给你两个序列\(a,b\),一次操作可以将\(a\)的某一个长度为\(k\)的子区间全部异或上任意值,\(f(a,b)\)为使得\(a\)和\(b\)相同的最少的操作数量。支持单点修改\(a,b\),并在开头和每次修改后输出\(f(a,b)\)的值。\(n,k,q\le2\times10^5,w\le2^{14}\)。题解......
  • mysql 加上 distinct Using temporary
    MySQL中的DISTINCT和UsingTemporary在MySQL中,DISTINCT是用于返回不重复的数据行的关键字。而UsingTemporary是一个标志,用于告知MySQL在处理查询时使用了临时表。DISTINCT关键字的使用当我们执行一个查询时,有时会发现结果集中存在重复的行。这可能是由于在表中存在重复的数据,或......
  • Abp Blazor WebAssembly - Polymorphic DTO Deserialization using System.Text.Json
    @@abp4.0dtojobject https://stackoverflow.com/questions/70032776/abp-blazor-webassembly-polymorphic-dto-deserialization-using-system-text-json1AbpFrameworkversion:5.0.0-beta2,UI:BlazorWebAssemblyI'mattemptingtoimplementpolymo......
  • idea报错 java: You aren't using a compiler supported by lombok, so lombok will
    转‘’:idea较新版本识别不了lombok生成的方法 在这增加参数:-Djps.track.ap.dependencies=false  ......