Asp: ImageButton won't start in asp.net UpdatePanel?

I have an asp: ImageButton that should trigger a popup save dialog when clicked. When I put it outside the UpdatePanel it works fine, but when I put it inside the UpdatePanel the dialog doesn't appear.

0


source to share


4 answers


I had a similar problem in a GridView, but it was solved by using an Image inside a LinkButton. http://netpl.blogspot.com/2008/01/imagebutton-in-templatefield-does-not.html for more information.



+1


source


Response.Write often doesn't work inside UpdatePanels. Assuming you're just running some kind of javascript on an onclick event on the client, you're probably better off just adding the javascript server to the server's OnClientClick function.



+1


source


txtmail.Attributes.Add ("onkeydown", "if (event.which || event.keyCode) {if ((event.which == 13) || (event.keyCode == 13)) {document. getElementById (' "+ Ibtnsend.UniqueID +" '). Click (); return false;}} else {return true}; ");

OnKeyDown = "submitOnEnter (this.Form1.Ibtnsend)"

0


source


Are you calling UpdatePanel.Update () after showing the popup?

0


source







All Articles