Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. help with url rewrite...

help with url rewrite...

Scheduled Pinned Locked Moved ASP.NET
csharphtmlsysadminarchitecturehelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swornavidhya_m
    wrote on last edited by
    #1

    I have to do an module program which downloads pdf files in the client side. Currently, when users download the file, the url of the downloaded file is viewed by the user. Modification instructed: 1. In the page where the file download is requested, the url of the downloaded file is viewed in the status bar of that web page. Modification is that the status bar should not display the url of the downloaded file. -- This had been corrected and the code has modified accordingly. It is done correctly only for the first page. Blinks how to process this for the second page.. 2. Currently, the call for the download page is given along with the filename of the user request. The filename is passed as the querystring. Modification needed is that the url should get rewritten as "~/download.aspx" instead of "~/download.aspx?". I came across using "urlrewriter". But don't know how to implement since i feel little confused with the code examples in net. I'm placing my code for ur assistance. I'm not using webconfig file also. old try pdf.aspx ****************

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="old try pdf.aspx.cs" Inherits="old_try_pdf" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Try PDF - Download</title>
    <style>
    .link_text
    {
    font-family:Tahoma;
    font-size:10px;
    color:#1d5296;
    text-decoration:none;
    }

        .link\_text A
        {
            font-family:Tahoma;
            font-size:11px;
            color:#1d5296;
            text-decoration:underline;	
        }
    
        .link\_text A:hover
        {
            color:#ff000c;
            text-decoration:underline;
        }
    
        .link\_text A:active
        {
            color:#ff000c;
            text-decoration:underline;
        }
        
        .bullets
        {
            background-image:url(Bullet.gif);	
            background-position:center;
            width:10px;
            height:10px;
            display:table-cell;		
            vertical-align:top;
            background-repeat:no-repeat;
        }
        
        .display\_cell
        {
            border:solid 1px #e6e7e8;
            display:table-cell;
            width:355px;
        }
    
    </style>
    

    </head>
    <body>
    <form id="form1" runat="server">

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups