Protected void GV_RowDeleting (object sender, GridViewDeleteEventArgs e)
{
Int id=int. Parse (GV) Rows [" e.R owIndex]. Cells [0]. The Text).
If (infoBll. Getinfobll (.) DeleteID (tm))
{
Response. Write (" & lt; script> Alert (' deleted successfully! ') & lt;/script>" );
GV. The DataSource=infoBll. Getinfobll () SelectName ();
GV. DataBind ();
}
}
If I put the Visible="false" to delete the program can run normally, but the request ID is hidden, so don't know how to solve this problem, ask bosses give directions!
CodePudding user response:
Int id=int. Parse (GV) Rows [" e.R owIndex]. Cells [0]. The Text).GV. Rows [" e.R owIndex] Cells [0]. The Text is not a valid integer
CodePudding user response:
Under the front-end processing
<style type="text/CSS" & gt;
The hidden
{
Display: none;
}
</style>
CodePudding user response:
"False" is capitalizedCodePudding user response:
Visible="false" is not submitted to the background, with # 2 CSS to control the hidden displayCodePudding user response: