Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<pre>
  iam use routing asp.net
    this my real link is     http://www.myweb.com/redownload/test.aspx
    i want this link     http://www.myweb.com/redownload/120/title.docx
    but click on link see this  error
    HTTP Error 404.0 - Not Found
    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
    The question is: Do I need a special configuration is IIS OR with      routing sloved this problem


ASP.NET
<asp:HyperLink ID="Fsyllab" NavigateUrl='<%# `String.Format(Eval("FCourseID","~/ReDownload/{0}/" +  Eval("FCourseName") + `".doc" ))%>'   target="_blank"  runat="server" Width="20px"  Height="10px"
 ImageUrl="/Images/main/download.png" CommandArgument='<%# `Eval("FCourseID") %>'  Font-Underline="false" Text='<%# `Eval("FCourseDuration").ToString()  %>' />

C#
routes.MapPageRoute(
         "products1-browse1", "ReDownload/{id}/{name}", "~/ReDownload.aspx",true);
Posted
Updated 10-Feb-15 7:10am
v2

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