أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
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 ?
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