コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string _action   = Request.QueryString["action"];
        string _filePath = Request.QueryString["p"];
        string _fileName = Request.QueryString["f"];

        if (_action.Equals(SCHUtil.SUBJECT_REGISTERSCHOLARSHIPTEMPLATE))
        {
            _filePath = SCHUtil._myFileDownloadPath;
            _fileName = "RegisterScholarshipTemplate.xls";
        }

        SCHUtil.ViewFile(_filePath, _fileName);
    }