ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.
تاريخ النشر: 2013/11/18
Bowsil Ameen
من قبل 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

 

 

 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟