Click here to Skip to main content
15,894,405 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.


XML
<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>




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.
Posted

1 solution

 
Share this answer
 

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