use RodioButton..Attributes["OnClick"]="JavaScript:alert('hi')");
in Page_Load()
I learn it over here recently & used much in 2 days :)
HIH,
Hovik.
----- Original Message -----
From: "welliton alves toledo" <welliton@r...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Thursday, October 31, 2002 1:53 PM
Subject: [aspx_professional] Add onclik in ListItem to RadioButton
I need to add event onclick for each item from RadioButton.
I`m trying:
While dr.Read
Dim Lista As ListItem = New ListItem()
Lista.Text = dr.GetString(0) & "-" & dr.GetString(1)
Lista.Value = dr.GetString(0)
Lista.Attributes.Add("onclick", "alert('hi')")
Rad_Tp_Venda.Items.add(Lista)
End While
But the "onclick" don`t appear on the page.
Thanks for any help.