Repeater, ImageButton & Firefox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RicercatoreSbadato

    #1

    Repeater, ImageButton & Firefox

    i need help, i have an ImageButton inside the ItemTemplate tag of a
    Repeater.
    In the code behind i use a DataBound() to assign a CommandName and a
    CommandArgument to the ImageButton.

    If i use IE all is ok, under Firefox no, it seems that the click event
    isn't raised when I click on the ImageButton.

    any idea ?

  • RicercatoreSbadato

    #2
    Re: Repeater, ImageButton & Firefox

    the solution is pretty easy.

    first read carefully
    http://msdn2.microsoft.com/en-us/lib...x2(VS.71).aspx

    then if you don't protect the DataBind() of the Repeater by the
    if (!this.IsPostBa ck) {.. }
    then every time you'll click on the ImageButton the page will refresh.

    strange thing is that with the framework .net 1.1 - if you make the
    DataBind() each time - the asp:Button responds correctly to the
    events, but the asp:ImageButton doesn't.

    On Apr 20, 11:35 am, RicercatoreSbad ato <emailsolid...@ yahoo.it>
    wrote:
    i need help, i have an ImageButton inside the ItemTemplate tag of a
    Repeater.
    In the code behind i use a DataBound() to assign a CommandName and a
    CommandArgument to the ImageButton.
    >
    If i use IE all is ok, under Firefox no, it seems that the click event
    isn't raised when I click on the ImageButton.
    >
    any idea ?

    Comment

    Working...