Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Question in update panel ASP.net.

I'm using a datalist inside updatepanel, and there is a button inside the datalist, when i click this button a div will appear with an image gallery inside it, the jquery for the image gallery wouldn't work when i'm using the updatepanel, but if i remove updatepanel it works well, how can i use the jquery inside the update panel ?

user-image
Question added by Zaid Rabab'a , Technical Team Lead , ESKADENIA Software
Date Posted: 2013/11/18
Bowsil Ameen
by Bowsil Ameen , Sharepoint Development officer / architect , Etihad Airways

Hello Zaid,

 

Are you trying to call some jquery fucntion in onclick ?

assuming that you hav button inside the update panel which call some jquery  function

 

sample illustration

<script type="text/javascript">function jScript() { $("#click").click(function () { alert("Clicked Me!"); }); }</script>this is code which is been called. <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate><script type="text/javascript" language="javascript"> Sys.Application.add_load(jScript); </script> <asp:Button ID="btnPostBack" runat="server" OnClick="btnPostBack_Click" Text="Click To Postback" /> <a href"#" id="click">Click Me!</a> </ContentTemplate> </asp:UpdatePanel>This is know issue.. hope this answers your question.Cheers

 

 

 

More Questions Like This