﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!object.Equals(Request.QueryString["file"], null))
        {

            if (object.Equals(Request.QueryString["file"], "4"))
            {
                string file = "CatalystsofChange-ProjectReport.pdf";
                Response.Clear();
                Response.ClearHeaders();
                Response.ClearContent();
                Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
                Response.ContentType = "text/plain";
                Response.Flush();
                Response.TransmitFile(file);
                Response.End();
            }
            else if (object.Equals(Request.QueryString["file"], "5"))
            {

                string file = "IncorporatingtheChangingFaceofDisastersintoDRR-CCAPolicy.pdf";
                Response.Clear();
                Response.ClearHeaders();
                Response.ClearContent();
                Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
                Response.ContentType = "text/plain";
                Response.Flush();
                Response.TransmitFile(file);
                Response.End();
            
            }
            else if (object.Equals(Request.QueryString["file"], "1"))
            {

                string file = "CatalystofChange-flyer.pdf";
                Response.Clear();
                Response.ClearHeaders();
                Response.ClearContent();
                Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
                Response.ContentType = "text/plain";
                Response.Flush();
                Response.TransmitFile(file);
                Response.End();

            }
            else if (object.Equals(Request.QueryString["file"], "2"))
            {

                string file = "CatalystofChange-Poster.pdf";
                Response.Clear();
                Response.ClearHeaders();
                Response.ClearContent();
                Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
                Response.ContentType = "text/plain";
                Response.Flush();
                Response.TransmitFile(file);
                Response.End();

            }
            else if (object.Equals(Request.QueryString["file"], "3"))
            {

                string file = "CatalystofChange-VoicesfromRajasthanandLadakh.pdf";
                Response.Clear();
                Response.ClearHeaders();
                Response.ClearContent();
                Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
                Response.ContentType = "text/plain";
                Response.Flush();
                Response.TransmitFile(file);
                Response.End();

            }
             
        }
        

    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
