ASP.NET Controls

 ASP.NET Controls- 

(the common property of every control is Text)

   Controls                                               Property/Event
1. Button                                                 Text 
2. Link Button                                         Text,PostBackUrl  
3. Hyper link                                           Text,NavigateUrl
4. Image Button                                       ImageUrl,PostBackUrl 
5. Radio Button List                                SelectedIndex 

Radio Button List is used to select one option at a time.
IMPLEMENTATION-
[QUIZ]
It has index system, the first most option will be assigned 0th position instead of first.

6. Multiview                                           ActiveViewIndex(by def -1) 

 MultiView Control is used to display Multiple content in Single page.

Using control-
|>Firstly, Drag n drop MultiView control from toolbox 
|>By default, Multi View is empty so the ActiveViewIndex is -1(-1 shows blank memory)
|>We need to insert the no. of view controls that the no. of contents/pages we want(and explicitly change ActiveViewIndex to 0) 
 
7. Drop Down List                                  IndexChanged

We can add data by two methods- 

1.Using Controls-
   |>Select the DropDownList Control>Click on Mastertag
   |>Dialog box will be open, Add items

Index position starts with 0.

2.Using code.

 |> DropDownList1.Items.Add(TextBox1.Text); 

 Items- It is an array, All the words ending with 's' are considered as array in dot net. 
Add- Function 

Any text written over TextBox1 will be added to DropDownList1

Comments

Popular posts from this blog

Parameter Query

Final Project

Grid View Paging