1
如何打开jQuery对话框,并在Gridview模板字段中放置图像按钮?使用asp.net GridView模板字段打开jQuery对话框
<asp:TemplateField HeaderText="افزودن">
<ItemTemplate>
<asp:ImageButton ID="add" runat="server" CausesValidation="false" CommandName="adddetail"
ImageUrl="~/Tadarokat/Images/add.png" Text="افزوردن" CommandArgument='<%# eval("mprid") %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:TemplateField>
我jQuery的功能是:
<script type="text/javascript">
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function test() {
$('#Div2').dialog({
autoOpen: false,
show: 'slide',
hide: 'clip',
width: 'auto',
height: 'auto'
,
modal: true,
resizable: false
});
$('#opener').click(function test() {
$('#Div2').dialog('open');
return false;
});
});
</script>
揭幕战是一个html按钮。 我想用我的asp.net图像按钮,而不是开瓶器。 我的问题清除吗?
是否清楚我的问题? – Shahin 2010-09-25 11:06:00