hi
I used below code for url routing:
global.asax
static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("Message", "Message/{Name}", "~/amlak/Newmessage.aspx");
}
behind code:
protected void LinkbtnDes_Click(object sender, EventArgs e)
{
LinkButton ImgEdit = (LinkButton)sender;
Response.Redirect("Message/" + ImgEdit.CommandArgument);
}
and html:
<asp:LinkButton ID="LinkButton4" runat="server" CssClass="lnkeditNe" CommandArgument='<%# Eval("Name")%>' OnClick="LinkbtnDes_Click">Message</asp:LinkButton>
problem is that when I click Linkbutton it show this error:
best regards
neda