Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I click on next page, error specified in question is occured..
plz suggest me why this error is occured on GridView1_RowCommand event..
Posted
Comments
Karthik_Mahalingam 21-Jan-14 3:32am    
post your code for this event GridView1_RowCommand

1 solution

Because you wrote wrong code in GridView1_RowCommand (and you did not show us that code, hence we cannot point you to the specific line!).
A GridView is not a LinkButton, nor does LinkButton inherit from GridView, consequently that cast is not possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900