hi
I use below code for url routing for linkbutton:
<asp:LinkButton ID="lnkRemove2" runat="server" CssClass="lnkeditM" CommandArgument='<%# Eval("Id")%>' OnClick="LinkbtnDes_Click">view</asp:LinkButton>
protected void LinkbtnDes_Click(object sender, EventArgs e)
{
LinkButton ImgEdit = (LinkButton)sender;
Response.Redirect("../Estate/" + ImgEdit.CommandArgument);
}
and:
routes.MapPageRoute("Estate", "Estate/{id}", "~/amlak/view.aspx");
now I want use urlrouting for <a> in below code:
<a runat="server" href='<%# "information.aspx?Id="+Eval("Id") %>' target="_blank"> <asp:Image ID="Image3" runat="server" ImageUrl="~/Image/main/view.png" CssClass="imageH"></asp:Image></a>
how I can do it?
best regards
neda