Home > Net >  Prompt string input format is not correct? asp.net
Prompt string input format is not correct? asp.net

Time:10-21


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 capitalized

CodePudding user response:

Visible="false" is not submitted to the background, with # 2 CSS to control the hidden display

CodePudding user response:

reference suano reply: 3/f
is "false" is capitalized
no

CodePudding user response:

reference 4 floor EdsionWang response:
Visible="false" is not submitted to the background, with # 2 CSS to control the hidden display
thanks, solved

CodePudding user response:

refer to the second floor of autumn red fruit response:

under the front-end processing
 
<style type="text/CSS" & gt;
The hidden
{
Display: none;
}
</style>


thank you very much
  • Related