How to get rid of “No value given for one or more required parameters”

前端 未结 2 1298

I have the following code,

When the update button in Gridview is clicked , it throws an error: No value given for one or more required parameters

2条回答
  •  猫巷女王i
    2021-01-24 13:11

    If you look at the below link, under Remarks it says "A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source."

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowupdating.aspx

提交回复
热议问题