Hi there,
Not from the BulletedList, but from the bulleted list. This is a small, but important difference. A BulletedList is a server side control that must have the runat attribute in order to function. In the example you're referring to, the code contains a client side bulleted list using <ul> and <li> elements. For the exercise, there's no need to run this control at the server, so removing the attribute turns it into a simple, client side ul. By removing the attribute your page might perform a bit faster (although I doubt you could measure the difference), but more importantly, it also removes the client id from the <ul> in the final HTML, causing less HTML to be sent to the browser. Since the ul is styled through its CSS class, you don't need the id at the client.
All of these benefits are tiny though. I like clean HTML and typically try to remove what I don't need. However, with the runat attribute it would still work; but you wouldn't be using any of the benefits that this attribute gives you here.
Hope this helps,
Imar
|