Click here to Skip to main content
15,889,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan2-Oct-12 6:39
mveRichard MacCutchan2-Oct-12 6:39 
AnswerRe: connection string Web.config + ASP.net C# Pin
jkirkerx2-Oct-12 18:00
professionaljkirkerx2-Oct-12 18:00 
GeneralRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan3-Oct-12 1:42
mveRichard MacCutchan3-Oct-12 1:42 
Questionconnection string in webconfig Asp.net C# Pin
Member 94738091-Oct-12 0:05
Member 94738091-Oct-12 0:05 
Questionword document open without dialog Pin
rajaramanperumal30-Sep-12 20:44
rajaramanperumal30-Sep-12 20:44 
QuestionHow to get advanced graphic controls in ASP.Net Pin
Vaibhav Laxman Survase30-Sep-12 19:16
Vaibhav Laxman Survase30-Sep-12 19:16 
QuestionData Controls in ASP.NET Pin
jkmehmi30-Sep-12 7:38
jkmehmi30-Sep-12 7:38 
AnswerRe: Data Controls in ASP.NET Pin
Sandeep Mewara30-Sep-12 7:46
mveSandeep Mewara30-Sep-12 7:46 
jkmehmi wrote:
why we have a number of data controls in asp.net (like, repeater, datalist, gridview, form view etc )?

Because each of them has different use and need. All are important and used for data presentation in form or other.


jkmehmi wrote:
What is differnece between form view, list view, and datalist Controls.

D'Oh! | :doh: Why did you not try to look for it on Google/Bing[^]?
One of the link: http://itmall.blogspot.in/2008/10/what-is-difference-between-gridview.html[^] - In a nutshell, it says:
GridView:
(1)Can select one row to do something.
(3)update, delete records in database, but not insert
(4)Sort, paging
(5)Concurrency handling
(6)Display empty data
(7)Formatting (e.g. alternative row style)
(8)Customize field (e.g. use TemplateField to edit record)
(9)Extend (e.g. create LongTextField for GridView)

ListView:
(1) template driven
(2) can add data to database
(3) can edit, page through, sort database data
(4) ListView is the only control implementing IPageableItemContainer interface, so it is the only one which can use DataPager control.

ListView is the most flexible List control in all. I can safely use ListView in place of GridView.

Repeater:
(1) display database records. It cannot edit/insert records
(2) entirely template driven

DataList:
(1) display database records(can edit?)
(2) entirely template driven
DataList is very similar to Repeater except that DataList's default behavior is rending the content using a table. However, you can override the default behavior.

DetailsView:
(1) Display/edit/delete/Insert records in database
(2) Render a table for a single record. always render each field in a seperate table row.

FormView:
Exactly like DetailsView except that FormView is entirely template driven.

ListControl:
there are RadioButtonList, DropDownList, CheckBoxList, BulletedList, ListBox.

Sandeep Mewara
Microsoft ASP.NET MVP

[My latest Article]: Server side Delimiters in ASP.NET[^]

GeneralRe: Data Controls in ASP.NET Pin
jkmehmi30-Sep-12 8:15
jkmehmi30-Sep-12 8:15 
Questionasp.net pdf file Pin
Member 946996328-Sep-12 22:44
Member 946996328-Sep-12 22:44 
AnswerRe: asp.net pdf file Pin
Sandeep Mewara28-Sep-12 23:23
mveSandeep Mewara28-Sep-12 23:23 
GeneralFile Upload control in Asp .net Page methods Pin
kkrangs28-Sep-12 22:02
kkrangs28-Sep-12 22:02 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx29-Sep-12 19:30
professionaljkirkerx29-Sep-12 19:30 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs30-Sep-12 22:04
kkrangs30-Sep-12 22:04 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 6:08
professionaljkirkerx1-Oct-12 6:08 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 7:41
professionaljkirkerx1-Oct-12 7:41 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 4:44
kkrangs10-Oct-12 4:44 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx10-Oct-12 6:42
professionaljkirkerx10-Oct-12 6:42 
GeneralRe: File Upload control in Asp .net Page methods Pin
sarathtamil8-Oct-12 23:59
sarathtamil8-Oct-12 23:59 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 5:00
kkrangs10-Oct-12 5:00 
QuestionI am facing error, BC30451: Name 'this' is not declared Pin
Anjani Kant28-Sep-12 20:38
Anjani Kant28-Sep-12 20:38 
AnswerRe: I am facing error, BC30451: Name 'this' is not declared Pin
Sandeep Mewara28-Sep-12 23:26
mveSandeep Mewara28-Sep-12 23:26 
Questionhelp with regular expression Pin
Jassim Rahma28-Sep-12 7:58
Jassim Rahma28-Sep-12 7:58 
AnswerRe: help with regular expression Pin
Richard MacCutchan28-Sep-12 22:20
mveRichard MacCutchan28-Sep-12 22:20 
GeneralRe: help with regular expression Pin
jkirkerx29-Sep-12 19:48
professionaljkirkerx29-Sep-12 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.