Tag: content pages

在内容页面中的更新面板之后,我的jquery选择器不起作用

我有一个内容页面,我在asp:updatepanel之后写了一些jquery选择器,第一次,当页面加载$(document).ready(function()工作正常,但在回发后,选择器不再工作,任何方式确实存在解决这个问题?? $(document).ready(function () { $(‘.PersianDTP’).datepicker({ showOn: ‘button’, buttonImage: ‘calendar.png’, dateFormat: ‘yy/mm/dd’, //appendText: ‘ (yy/mm/dd)’, changeMonth: true, changeYear: true, //selectOtherMonths: true, //showOtherMonths: true, showStatus: true, showButtonPanel: true, buttonImageOnly: true, buttonText: ‘Choose a Date’, onClose: function () { this.focus(); } }); jQuery(function ($) { $(“.PersianDTP”).mask(“9999/99/99”); }); });

如何从asp.net按钮单击事件调用javascript函数

如何从asp.net按钮单击事件中调用showDialog。 我的页面是一个内容页面,其中包含与之关联的母版页。 我尝试了以下内容 <asp:Button ID="ButtonAdd" runat="server" Text="Add" OnClientClick="showDialog(#);” /> 我还必须从gridview模板按钮调用此相同的函数来修改对话框中的记录。 // Used the following example to open the dialog withJquery var dl; $(document).ready(function () { //Adding the event of opening the dialog from the asp.net add button. //setup edit person dialog $(‘#addPerson’).dialog({ //Setting up the dialog properties. show: “blind”, hide: “fold”, resizable: false, modal: true, […]