In this asp.net tutorial you will learn how to pass QueryString from asp.net hyperlink in asp.net using c#. Let's have a look over how to do this. In first example we will look how to pass single QueryString from asp.net hyperlink and then in second example we will look how to pass multiple QueryString params from asp.net hyperlink.
<ItemTemplate>
<asp:HyperLink ID="hyp_Caseno" Text='<%# Bind("Case_No")%>' runat="server" NavigateUrl='<%# "yourpage.aspx?caseno=" + DataBinder.Eval(Container.DataItem,"Case_No")%>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
Second Example:-
<asp:TemplateField HeaderText="Case No">
<ItemTemplate>
</ItemTemplate>
</asp:TemplateField>
0 comments:
Post a Comment