Click here to Skip to main content
15,742,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
iam using ASP.NET Routing
but i have this broblem when click.

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

http://localhost:7777/ReDownload/1141/1141.doc[^]

C#
void RegistreRoutes(System.Web.Routing.RouteCollection routes)
      {
          routes.MapPageRoute(
              "products-browse", "ShowInfCourse/{id}/{name}", "~/ShowInfCourse.aspx");
          routes.MapPageRoute(
              "products1-browse1", "ReDownload/{id}/{name}", "~/ReDownload.aspx");


ASP.NET
<asp:TemplateField HeaderText="test">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="Fsyllab" NavigateUrl='<%# String.Format(Eval("FCourseID","~/ReDownload/{0}/" +  Eval("FCourseName")+ Eval("Fname")))%>'  target="_blank"  runat="server" Width="20px"  Height="10px" ImageUrl="/Images/main/download.png" CommandArgument='<%# Eval("FCourseID") %>'  Font-Underline="false" Text='<%# Eval("FCourseDuration").ToString()  %>' />
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                                </asp:TemplateField>
Posted

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