G
Guest
I have a datagrid with a linkbutton for editing. I'm trying to run some
javascript when the link button is clicked to show a wait message. Everything
works fine the first time after the page loads but on subsequent postbacks,
the script does not run.
The following code is inlcuded in the the ItemDatabound sub in the code
behind.
dim l as linkbutton
if e.item.itemType = ListItemType or e.Item.ItemType = AlternatingItem then
l = ctype(e.item.Cells(0).FindControl(lnkbutEdit"), LinkButton)
l.attributes.Add("onclick", "return busyBox.Show();")
end if
Thanks
javascript when the link button is clicked to show a wait message. Everything
works fine the first time after the page loads but on subsequent postbacks,
the script does not run.
The following code is inlcuded in the the ItemDatabound sub in the code
behind.
dim l as linkbutton
if e.item.itemType = ListItemType or e.Item.ItemType = AlternatingItem then
l = ctype(e.item.Cells(0).FindControl(lnkbutEdit"), LinkButton)
l.attributes.Add("onclick", "return busyBox.Show();")
end if
Thanks