foreach (li As ListItem in rbl.Items)//rbl is the id of radionbuttonlist{li.Attributes.Add("onclick", "javascript:showPopup();");}