4 ) DROPDOWNLIST

                            *     DropDownList   *

 Q 1 )     How to add data in Dropdownlist 
   Step  : -  toolbox -- dropdownlist--[>]--edit items--add--text(name)--ok


    Design :-     textbox , dropdownlist ,button(add)

    Coding through :- 
  {
    DropDownList1.Items.Add(TextBox1.Text); 
   }

  Q 2 ) how to print dropdown data in Textbox
     
         Coding thorugh :- double click on Dropdownlist

         Code :-    TextBox1.Text = DropDownList1.Text; 

                                 




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)