Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2009, 11:19 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile dropdown list with datalist

Hello every member of forum,
I am dealing with webshop application. Till now I've learned more about it. But now one thing that I want to modify is using DropDown list with Datalist control on Shop/Default.aspx page. Because using repeater for this case seems very messive and will take a lot of space on the page.
So can anybody guide about using dropdownlist control with datalist control.
Thanks..........
 
Old October 20th, 2009, 09:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

First of all I don't understand what you're asking. When posting questions, please be specific and provide as much information as possible.

Secondly, why would a DataList be cleaner? Out of the data bound controls the Repeater is the only control that doesn't generate HTML itself and as such is the cleanest control when it comes to presenting HTML in the browser.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 20th, 2009, 10:39 AM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

hello sir, I think I could not make u understand about problem. From dropdown list cleaner I never meant by html generation at all. I just asked that how I can bound dropdownlist items to the datalist control.
 
Old October 20th, 2009, 03:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You don't bind dropdownlist items to the datalist control. Both these controls are data-bound controls. To get data in these controls, you need to use a DataSource control like the SqlDataSource or the ObjectDataSource control, just as is done with the Repeater in the shop page.

Man, this would be so much easier if you had a book....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 20th, 2009, 04:18 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

thank you sir for bieng with me.......
Well I wanted to ask about using dropdown list instead of repeater.
sir, I have now book. So indeed I'll get a great help and I'll move to completion and I know You are always there to help out others otherwise.
Once again thank you

Keep smiling........ as I do.
 
Old October 20th, 2009, 04:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What book do you have? Makes it easy to point you to specific pages...

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 20th, 2009, 05:02 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

Sir, I have your book ASP.Net 2.0 Instant Resullts (ISBN: 978-0-471-74951-6)





Similar Threads
Thread Thread Starter Forum Replies Last Post
fill dropdown list with items when parent list isaac_cm Pro PHP 1 July 10th, 2006 05:41 AM
Navigating to another list in a DataList macupryk General .NET 0 October 8th, 2004 02:15 AM
How to bind data to a dropdown in a datalist thats broushly ASP.NET 1.0 and 1.1 Basics 1 April 28th, 2004 01:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.