Controls in asp.net
-
Upload
baabtracom-mentoring-partner-first-programming-school-in-india -
Category
Technology
-
view
11.330 -
download
4
description
Transcript of 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
Week Target Achieved
1 25Wmp
22Wmp
2
3
Typing Speed
Jobs AppliedWeek Company Designation Applied Date Current Status
1
2
3
Controls in Asp.Net
Shajeer [email protected] PkShajeer pkShajeer pk9544559642
Controls
• Control is a inbuilt function• When we are using control that automatically
generate html code• Controls used for designing
• 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
Standard Controls
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
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
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.
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.
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.
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
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
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
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
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
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
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
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
HiddenField
• It is to use for a hide control,its not display at runtime.
PropertiesOnly two property1:text2:visible
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.
Calendar
• To add a calendar in a web page.• This is to display month and date a calendar
formate.PropertySelected Date
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
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
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
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
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.
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.
Details view
• Details View help us to show data one record at a time
Sql datasourse,accessdatasourse,Xmldatasourse
• The following are asses to sql database
Validater
Required validater
• Required validater validate for entering compalsery
PropertiesControl to validate:validate for wich controlText:wich text we want to validate
Range validater
• To validate one conditionThe following are the prpperties1:Requared field Validater2:Maximum value3:minimum value
Regular Expression validater1:Requared field Validater2:range validater3:Regular expressin validater5:validate summery
Thanks
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]
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