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>

                           



*   Assigment :- Naming container (delete,update ,whatsapp)  *

       1 ) delete ,update data click on button 
       2 ) view data to next page 
       3 ) Click on whatsapp button to open whatsapp page 

         


Comments

Popular posts from this blog

DATA CONTROL ( Gridview , Repeater , Formview , DataList , Detailsview , Listview )

Z 5 ) MVC (Model view Controller)

Z 8 ) MVC HTMLHELPER METHOD AND ACTIONLINK (how to use css ,atrributes,style in css)