 |
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
|
|
|
|
|

October 19th, 2009, 11:19 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
|
|
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..........
|
|

October 20th, 2009, 09:57 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

October 20th, 2009, 10:39 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
|
|
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.
|
|

October 20th, 2009, 03:49 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

October 20th, 2009, 04:18 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
|
|
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.
|
|

October 20th, 2009, 04:56 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
What book do you have? Makes it easy to point you to specific pages...
Imar
|
|

October 20th, 2009, 05:02 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
|
|
Sir, I have your book ASP.Net 2.0 Instant Resullts (ISBN: 978-0-471-74951-6)
|
|
 |