I ) Naming Container normal , Ass (whatsapp, Del,upd in Grid ) ASP.net in C#
* Naming Container *
- Gridview coding for outer button then use FOREACH
- Inside the gridview Button we have to use Naming Container concept.
- Naming container use grid view Row Object .ex( R1 )
Syntax :- GridViewRow r1 =
((Button)sender).NamingContainer as GridViewRow;
* gridview mein button lgane par ONclick Atribute dena compulsary hai (OnClick="Delete1_Click" )
Steps :1) create page -- show function and call -- gridview--
2)
databound(id,name,city) -- template field(delete button)3) source -- <itemtemplate> tools Delete button and add ATRIBUTE( ONCLICK="Delete1_click")</itemtemplate>
Comments
Post a Comment