GridView HyperlinkField OnClick事件 [英] GridView HyperlinkField OnClick Event

查看:186
本文介绍了GridView HyperlinkField OnClick事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我的项目中有一个gridview。我添加了一个超链接字段列。





Hello ,

I have a gridview in my project. I added a hyperlinkfield column.


<Columns>
                      <asp:TemplateField HeaderText="No">
    <ItemTemplate>
            <%# Container.DataItemIndex + 1 %>
    </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
       <asp:BoundField DataField="mus_ad" HeaderText="mus_ad" SortExpression="mus_ad" >
            </asp:BoundField>
       <asp:BoundField DataField="marka" HeaderText="marka" SortExpression="marka" >
            </asp:BoundField>
       <asp:BoundField DataField="model" HeaderText="model" SortExpression="model" >
            </asp:BoundField>
       <asp:BoundField DataField="durum" HeaderText="durum" SortExpression="durum" >
            </asp:BoundField>
            <asp:BoundField DataField="stk" HeaderText="stk" SortExpression="stk" />
          <asp:BoundField DataField="alinma_tarih" HeaderText="alinma_tarih" SortExpression="alinma_tarih" />
                      <asp:HyperLinkField ControlStyle-ForeColor="Black" Text="Düzenle" NavigateUrl="Default.aspx" />
   </Columns>









所以我想写一个此超链接onclick事件中的脚本。但是没有任何onclick事件。

如何在这个按钮的onclick事件中编写代码?









如何导航此按钮的链接如下:default.aspx?client = mus_ad& status = durum



基本上,这就是我想做的事情。





So i want to write a script in this hyperlinks onclick event. But there isn't any onclick event.
How can i write a code in this button's onclick event ?


Or

How can i navigate this button's link like this : default.aspx?client=mus_ad&status=durum

Basically , this is , what am i trying to do.

推荐答案

参考:升C-怎么办,我创建-A-超级链接-的onclick-事件 - on-gridview [ ^ ]


这篇关于GridView HyperlinkField OnClick事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆