Controls in asp.net

47

description

Controls in asp.net

Transcript of Controls in asp.net

Page 1: Controls in asp.net
Page 2: Controls in asp.net

Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 3: Controls in asp.net

Week Target Achieved

1 25Wmp

22Wmp

2

3

Typing Speed

Page 4: Controls in asp.net

Jobs AppliedWeek Company Designation Applied Date Current Status

1

2

3

Page 5: Controls in asp.net

Controls in Asp.Net

Shajeer [email protected] PkShajeer pkShajeer pk9544559642

Page 6: Controls in asp.net

Controls

• Control is a inbuilt function• When we are using control that automatically

generate html code• Controls used for designing

Page 7: Controls in asp.net

• property- A property is a thing that describes the features of an object. A property is a piece of data contained within a class that has an exposed interface for reading/writing. Looking at this definition

• Event- An action that an object does. When something happens, we say an event has happened

Page 8: Controls in asp.net

Standard Controls

Page 9: Controls in asp.net

Label

• Ideally Label control is used to place a static, non clickable (can't fire onclick event) piece of text.

properties• AccessKey, Attributes, BackColor, BorderColor,

BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width,text,id

Page 10: Controls in asp.net

Text Box

• The TextBox control is used to create a text box where the user can input text.

• A text box's purpose is to allow the user to input text information to be used by the program.

• AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width,Id

Page 11: Controls in asp.net

Button

• The Button control is used to display a push button. The push button may be a submit button or a command button. By default, this control is a submit button.

• A submit button does not have a command name and it posts the page back to the server when it is clicked. It is possible to write an event handler to control the actions performed when the submit button is clicked.

Page 12: Controls in asp.net

Link button

• The LinkButton control is used to create a hyperlink button.

PostBackUrl • Gets or sets the URL of the page to post to

from the current page when the LinkButton control is clicked.

Page 13: Controls in asp.net

Hyper link

• HyperLink will not PostBack page to the server. It will post a simple request to the server for the URL you set as href. The LinkButton works exactly as a normal Button but it looks like an HyperLink, so it will PostBack your page to the server allowing you to do your business operations. Another (obvious) difference is that the HyperLink doesn't have the OnClick event.

Page 14: Controls in asp.net

List Box

• The List Box control is used to create a single- or multi-selection drop-down list.

• Each selectable item in a List Box control is defined by a ListItem element

main property of list boxcollection – add items in list box

Page 15: Controls in asp.net

Check box

• The CheckBoxList control is used to create a multi-selection check box group.

• Each selectable item in a CheckBoxList control is defined by a ListItem element

important propertychecked- two values true or false

Page 16: Controls in asp.net

DropDownList

• The DropDownList control is used to create a drop-down list.

• Each selectable item in a DropDownList control is defined by a ListItem element.

Imported properties• SelectedIndex• Items• SelectedItem

Page 17: Controls in asp.net

Radio button

• The RadioButton control is used to display a radio button.

• To select one option.One of the important propertiesChecked-two values true or false

Page 18: Controls in asp.net

RadioButtonList

• The RadioButtonList control is used to create a group of radio buttons.

• Each selectable item in a RadioButtonList control is defined by a ListItem element

The important propertiesDataTextFieldDataValueField

Page 19: Controls in asp.net

Image

• The Image control is used to display an image.the important propertiesThe Important PropertiesDescriptionUrl-The location to a detailed

description for the imageImageUrl-The URL of the image to display for the

linkImageAlign-The URL of the image to display for

the link

Page 20: Controls in asp.net

Imagemap

• The ASP.NET ImageMap control allows you to create an image that has individual regions that users can click, which are called hot spots. Each of these hot spots can be a separate hyperlink or postback event.

• The imported property is -image url-to get image• hot spot-to add hot spotCircleHotspotRectangleHotspotPolygonHotspot

Page 21: Controls in asp.net
Page 22: Controls in asp.net

BulletedList

• The BulletedList control creates a list in bullet format.

• Each item in a BulletedList control is defined by a ListItem element

Imported properties• Items-to specifies items• Bullet style-Specifies the style of the bullet list

Page 23: Controls in asp.net

HiddenField

• It is to use for a hide control,its not display at runtime.

PropertiesOnly two property1:text2:visible

Page 24: Controls in asp.net

Literal

• The Literal Control is similar to the Label Control as they both are used to display static text on a web page.

• Unlike Label control, there is no property like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. for Literal control. That makes it more powerful, you can even put a pure HTML contents into it.

• This is a light waight control.

Page 25: Controls in asp.net

Calendar

• To add a calendar in a web page.• This is to display month and date a calendar

formate.PropertySelected Date

Page 26: Controls in asp.net

AdRotater

• AdRotator control to display advertisements in an ASP.NET Web site

• The AdRotator control allows developers to place graphical advertisements on a Web Form and provides programmatic functionality that enables the development of custom logic to track advertisement clicks.

PropertiesKeywordFilter-support

Page 27: Controls in asp.net

File Upload

• This property to help us to browse a file and upload

PropertiesFileName:It is the path of the file;If we wants to add a file using file uploader we

will get its path in file Upaload.fileName

Page 28: Controls in asp.net

Wizard control

• It is to use a deferent type of controls in deferent time.

• It is a step by step formattingMain PropertyDisplay cancel-To display cancel buttonIn This Control we are add how much step we

want to add

Page 29: Controls in asp.net
Page 30: Controls in asp.net
Page 31: Controls in asp.net
Page 32: Controls in asp.net

Grid View

• The GridView and Details View controls are commonly used in a Master/Detail page. A Master/Detail page is a page that displays a list of items from a database along with the details of a selected item in the list

Page 33: Controls in asp.net

Repeater

• The Repeater control is used to display a repeated list of items that are bound to the control

• Following are the major differences between repeater and gridview controls: 1- Repeater is a light weight control and gridview is a heavy control. 2- Repeater doesn’t provide any built-in support to format the data whereas the gridview control has a very good support to format, sort and align the data. 3- Repeater provides more customization than gridview. 4- It is difficult to display data with repeater than gridview.

Page 34: Controls in asp.net

DataList

• The DataList control is, like the Repeater control, used to display a repeated list of items that are bound to the control. However, the DataList control adds a table around the data items by default.

• light weight control, and acts as a container of repeated data items. The templates in this control are used to define the data that it will contain.

Page 35: Controls in asp.net

Details view

• Details View help us to show data one record at a time

Page 36: Controls in asp.net

Sql datasourse,accessdatasourse,Xmldatasourse

• The following are asses to sql database

Page 37: Controls in asp.net
Page 38: Controls in asp.net
Page 39: Controls in asp.net
Page 40: Controls in asp.net
Page 41: Controls in asp.net

Validater

Page 42: Controls in asp.net

Required validater

• Required validater validate for entering compalsery

PropertiesControl to validate:validate for wich controlText:wich text we want to validate

Page 43: Controls in asp.net

Range validater

• To validate one conditionThe following are the prpperties1:Requared field Validater2:Maximum value3:minimum value

Page 44: Controls in asp.net

Regular Expression validater1:Requared field Validater2:range validater3:Regular expressin validater5:validate summery

Page 45: Controls in asp.net

Thanks

Page 46: Controls in asp.net

Contact Us

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Start up VillageEranakulam,Kerala, India.

Email: [email protected]

Page 47: Controls in asp.net

If this presentation helped you, please visit our page facebook.com/baabtra and like it.

Thanks in advance.

www.baabtra.com | www.massbaab.com |www.baabte.com