Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am new asp.net user and I use gridview id gv
in gv I use event
C#
protected void gv_RowCommand(object sender, GridVieCommandEventsArgs e)
{
    ViewState["info_id"]=e.CommandArgument;
    if(e.CommandName=="edit")
   {
      //do some work;
   }
}


and I given button in gridview and buttons command name will be set edit.
its shows error on this command i want to open a panel and edit the value as e.commandArgument.
please help me.
Thanks
Posted
Updated 3-Mar-11 23:33pm
v2
Comments
m@dhu 4-Mar-11 5:34am    
What error are you getting.
UD(IA) 5-Mar-11 1:06am    
thanks
i solve this problem i use edit which create problem now i given name edit1 its working properly
thanks again
Sunasara Imdadhusen 4-Mar-11 6:11am    
Right, you should provide full detail about getting error
UD(IA) 5-Mar-11 1:06am    
thanks
i solve this problem i use edit which create problem now i given name edit1 its working properly
thanks again
Monjurul Habib 5-Mar-11 18:26pm    
make it solved.

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