Tuesday, 25 September 2012

Basic Controls

label: it is used to show the text.take a tool label from your toolbox.

right click on label and select the property option.
in the option select TEXT property and change the text you want to show on the webpage.
like this



TEXTBOX: it is used to take the input from the users.take the textbox control from the toolbox.


Property:
  • TEXTMODE: use " password" mode for the password field.it show the character in asteriks or dots.
                           use "mutiline" mode for accepting the data as a paragraph.

  • BACKCOLOR: to set background color of textbox.
BUTTON:it is a event driven control.on clicking the button we execute the written code.
all the logic or codes are executed by button.take the control button



on double click on button you get the code window or click event of button.in you write the code which you want to be executed.



when we click on button label1 contains the string "welcome".

RADIOBUTTON:it is used to select one option from the multiple option.select radiobutton control from the toolbox.


PROPERTY:
  • GROUPNAME:it is used to join the radiobutton in one group.suppose you take 3 radiobuttons and set different group names on selecting you can select all 3 radiobuttons.but you want to select only 1 option so set same group name.by this you can only select 1 radiobutton.
CHECKBOX:it is used to select multiple options.take the checkbox control


DROPDOWN LIST: it is used to make the list of items.select dropdown control



click on the arrow button in the dropdownlist and select "edititems" .you get above window click on "add" button enter the name of item in the "text" field and then click "ok".and again click on "add" to insert more items and "remove button " is used to remove the items from the list.

LISTBOX:it is same as the dropdown list but the difference is when you want to store 5 or 6 item use listbox and if you want to store 10 or more than 10 items use dropdown because it requires less space in comparision to list box.


you can edit the items same as you edit in dropdown list.

HYPERLINK:it is used for linking the webpages.select the hyperlink control 


open property and select "navigate url" in this enter the url or name of another webpage.
select "image url " property and enter the image url .so in place of name it shows the  selected image.

first of all right click on C:\website in the solution explorer and make new folder name image.
and copy the image in this folder and use these image where you want.

LINKBUTTON:it is same as the hyperlink control. main difference is linkbutton contains click event in which you write the logic or code u want to be executed.it is also used for linking.



IMAGEBUTTON:same as the button but in place of text it displays the image.


No comments :

Post a Comment