Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.
Date de publication: 2013/11/18
Bowsil Ameen
par 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