In this section we will talk about the BulletedList control, which literally means a list arranged like bullets. I immediately thought of a heavy machine gun, and next to it was a magazine still in the box. Wow, there was also a guy with branches stuck in his head, and his face looked like he had been pushed out from under a boiler. He opened his mouth wide enough to stuff it. The mouth of a casserole's big fist was shooting wildly. Damn, Shuai Meng (not dumb).
Faint to death. To get to the point, the bulletedlist control, like other list controls, is derived from the ListControl class, so the usage and many properties are similar. Its main function is to create an unordered or ordered (numbered) list. It can directly add static items or bind data to it.
Its style is a little more than other list controls, such as BuletImageUrl (image with bullets),
Its presentation methods mainly include the following:
statically added columns of items:
Let's make a static addition below, and then change it to a hyperlink in full view of the public.
aaaaaaa
aaaaa
bbbbb
Unlinked text column: (Nothing mysterious, just set the DisplayMode property to Text, in fact the default is this)
10932 Bigge Rd.
309 63rd St. #411
589 Darwin Ln.
22 Cleveland Av. #14
5420 College Av.
Text column with link: (Nothing mysterious, just set the DisplayMode property to HyperLink)
But this hyperlink is not that easy to make. The default link is the value of this page plus value. I am very unhappy, but I searched for a long time in the properties and found nothing that can directly set the link. After 30 After being depressed and very unhappy for a few seconds, I decided to modify it myself, of course not from the bulletedlist class. Haha, we used his DataBound event to do it!
10932 Bigge Rd.
309 63rd St. #411
589 Darwin Ln.
22 Cleveland Av. #14
5420 College Av.
Hyperlink button column: (That is, set the DisplayMode property to LinkButton)
10932 Bigge Rd.
309 63rd St. #411
589 Darwin Ln.
22 Cleveland Av. #14
5420 College Av.