Blue Theme Orange Theme Green Theme Red Theme
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Home | Forums | Videos | Photos | Blogs | Beginners | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Mindcracker MVP Summit 2012
Search :       Advanced Search »
Home » ASP.NET and Web » ASP.Net Toolbox (Data Controls): Part 2

ASP.Net Toolbox (Data Controls): Part 2

In this article we will discuss, ASP.Net Toolbox controls and its uses. In this article I am only writing some lines on each and every control available in Data Control section.

Author Rank :
Page Views : 1540
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Mindcracker MVP Summit 2012
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 


Introduction

Here is Part 1

Toolbox is very-very important building block of .NET Framework. Toolbox is an area where all the controls existed. It helps the developer to develop any application very quickly, only drag the control from the toolbox and drop it on the form. To change its properties we have to select the control and make the properties changes from Properties window. We can do it manually by writing code-behind. There are over 100 controls available in ASP.NET 4.0. I am listing here all the controls available in ASP.NET 4.0 and writing some lines on each of them.

2.JPG


2. Data Controls

Data Control section includes the controls which mostly let us to connect from external databases. Means in this section we are going introduce about all controls which have ability to leads the databases on web page. There are mainly two types of control we will find here that is DataSource Control and Data Control. For example DataSource Controls includes controls like EntityDataSource, LinqDataSource, ObjectDataSource, SiteMapDataSource, SqlDataSource, XmlDataSource and Data Control includes recent all excluding pointer as listed below.

  • Pointer: It is just a pointer. If we drag any other control on form it causes to create that control on form but pointer does not create any control on form. In other word we can say, we select it for to ignore any other selected control.
  • AccessDataSource: This control is used to connect the Microsoft Access Databases. We can say this control is derived from SqlDataSource, which has complete connection string like credentials, path etc but AccessDataSource has only its MDB database path.
  • Chart: This control is used to create professional looking data visualization charts. It is mostly used in windows based applications. We have 35 types of chart in .Net 4.0 with fully 3D support.
  • DataList: This control is used to list the data from database and it looks like table on web form. We can select or edit any data Selection or edition of any row is possible here.
  • DataPager: This control is generally used with ListView control. As we ListView control is data driven so we have to create ListView on web page first and provide some data to it and now add DataPager control onto the page to enhance web page functionality.
  • DetailsView: This control is used to display, edit, insert, or delete a single record at a time from its associated data source; it displays only a single data record at a time, even if its data source exposes multiple records.
  • EntityDataSource: This control is used to create, read, update, and delete data like other data sources. It works like editable grids or say form with lots of user controlled techniques like sorting, filtering etc.
  • FormView: This control is similar to DetailsView control, which gives us the ability to work with a single record from a data source. Main difference between both controls is that DetailsView control uses a tabular layout where each field of the record is displayed as a row. In FormView control we can create template containing any other control.
  • GridView: This control is used to displays data from data source in a table. In table column represents a field and row represents a record. We can select, edit or sort the data items here.
  • LinqDataSource: This control is used to connect wide variety of data sources that includes database data, data-source classes, and in-memory collections. It also let us to specify database like retrieval tasks like selecting, filtering, grouping, and ordering against all types of data sources. We also use this control for updating, deleting, and inserting database tables.
  • ListView: This control is used to display the data from database. It is similar to GridView, Repeater and DataList, which also help us to display data. List view control is template driven control.
  • ObjectDataSource: This control is introduced in ASP.Net 2.0, which helps us to connect with database using very less coding. In this control we use TypeName property instead of using ConnectionString property in another data source controls. It supports properties such as SelectMethod, UpdateMethod, InsertMethod, and DeleteMethod etc.
  • QueryExtender: This control is used to filer data from database without using WHERE clause. As we know database filtering requires WHERE clause in command.
  • Repeater: This control is used to display a repeated list of items that are bounded to the control. It may be bound to a database like XML file, or another.
  • SiteMapDataSource: This control is used to retrieve navigation data from a site map provider that is from any data source using DataSourceID and then passes the data to a control that displays that data such as the TreeView and Menu controls. This is very informative for website visitors to find any link in huge list of links.
  • SqlDataSource: This control is used to control or access data located in a relational database, including different database service providers like Microsoft SQL Server and Oracle databases, as well as OLE DB and ODBC data sources.
  • XmlDataSource: This control is used to display XML data from XML database. It usually used to display or read only XML data. User can edit, delete and update XML data using XmlDataSource control only through some code.

Note1: Keep visiting to my articles, you will find different articles on different controls separately in coming days.

Note2: Continue in next part.

HAVE A GREAT CODING!
 

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Abhimanyu Kumar Vatsa
http://www.itorian.com/about/
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the top 5 tips for understanding .NET
Ricky Leeks presents the top 5 tips for understanding .NET Interoperability. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Comments
DevExpress Free UI Controls
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.