In building the news feed in the previous article i initially used a data list. It all worked fin in IE but when i loaded the page up in Firefox my articles were showing outside the DIV they were supposed to be in! Confusing.
After investigating it with the IE Developers Toolbar i discovered the Datalist was outputting my news articles (which were built using the ul li structure) as tables!
NOTE: IE Developers toolbar is a wicked tool for web developers! Check it out here: Internet Explorer Toolbar This tool lets you see the DOM. Invaluable in debugging your pages.
I simply switched from using a DataList to a repeater and job done! My HTML was now as it was supposed to be and formatted in the correct div.
Wednesday, 14 November 2007
ASP.net DataList v Repeater
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment