Author: amintaheri | Posted on: 4/11/2010 6:32:56 PM | Views : 588

Hi all,


I have a problem in that a LinkButton inside a repaters ListItem is not firing the first time the button is clicked, but does work the second time.
This behavior is consistant for all rows in the repeater, if I reload the page the first one I click on no matter what row it is doesnt work, while then every other one (including the first one) then start working.


The js is this
function confirmDelete() { return confirm('blah'); }

The OnClientClick is set in the OnItemDataBound event for the repeater.

protected void Repeater1_DataBound(Object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
       ...

Go to the complete details ...