Click here to Skip to main content
14,937,037 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,

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

                      <asp:TemplateField HeaderText="No">
            <%# Container.DataItemIndex + 1 %>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
       <asp:BoundField DataField="mus_ad" HeaderText="mus_ad" SortExpression="mus_ad" >
       <asp:BoundField DataField="marka" HeaderText="marka" SortExpression="marka" >
       <asp:BoundField DataField="model" HeaderText="model" SortExpression="model" >
       <asp:BoundField DataField="durum" HeaderText="durum" SortExpression="durum" >
            <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" />

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 ?


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.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900