Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro
Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro
Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<st<strong>ro</strong>ng>ASP</st<strong>ro</strong>ng>.<st<strong>ro</strong>ng>NET</st<strong>ro</strong>ng> 03.03.2014 23/30<br />
Cont<strong>ro</strong>lul BulletedList<br />
Este echivalent cu sau .<br />
Articolele se ataseaza la cont<strong>ro</strong>l folos<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>d p<strong>ro</strong>prietatea Items.<br />
P<strong>ro</strong>prietati<br />
BulletStyle – determ<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>a stilul de marcare al listei.<br />
Valori posibile:<br />
Numbered, LowerAlpha, UpperAlpha, LowerRoman, UpperRoman, Disc, Circle,<br />
Square, CustomImage (caz <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> care trebuie setata p<strong>ro</strong>prietatea BulletImageUrl).<br />
BulletImageUrl -<br />
FirstBulletNumber – seteaza prima valoare d<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> lista (cu care se <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>cepe marcarea<br />
elementelor).<br />
DisplayMode : {Text, L<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>kButton – eveniment clic, HyperL<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>k – textul este un URL}.<br />
Exemplu. Codul pentru tratarea evenimentului clic e scris <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> pag<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>a.<br />
<br />
<br />
<br />
p<strong>ro</strong>tected void BulletedList1_Click(object sender,<br />
BulletedListEventArgs e)<br />
{<br />
if (e.Index ==0)<br />
{<br />
Image1.ImageUrl = "~/images/audi.png";<br />
}<br />
if (e.Index ==1)<br />
{<br />
Image1.ImageUrl = "~/images/bmw.png";<br />
}<br />
}<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Click the name to see the user's photo<br />
<br />
<br />
Ioan Asim<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>oaei