<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownFiles.aspx.cs" Inherits="通告上传和下载.DownFiles" %>
<!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></title>
<style type="text/css">
.style1
{
width: 100%;
}
.postCon a,.postBody a,.feedbackCon a{text-decoration:underline;color:#0066cc;}
a{text-decoration:none;color:#000;}
*{margin:0;padding:0;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table class="style1">
<tr>
<td>
通告信息浏览:</td>
</tr>
<tr>
<td>
<asp:GridView ID="GridView1" runat="server"
AllowPaging ="true" AllowSorting ="true"
AutoGenerateColumns ="false" Font-Size ="9pt" Width="457px"
onselectedindexchanged="GridView1_SelectedIndexChanged"
OnRowDataBound="GridView1_RowDataBound"
OnRowDeleted="GridView1_ RowDeleting" >
<Columns >
<asp:BoundField DataField ="id" HeaderText ="编号" />
<asp:BoundField DataField ="title" HeaderText ="标题" />
<asp:BoundField DataField ="author" HeaderText ="发布人" />
<asp:BoundField DataField ="dates" HeaderText ="发布日期" />
<asp:CommandField HeaderText ="下载附件" ShowCancelButton ="false" ShowSelectButton ="true"
SelectText ="下载" ShowHeader ="true" >
<ControlStyle ForeColor ="Blue" />
</asp:CommandField >
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
namespace 通告上传和下载
{
public partial class DownFiles : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView1_SelectedIndexChanged(object sender, GridViewSelectEventArgs e)
{
try
{
//获取编号信息
string strid = GridView1.Rows[e.NewSelectedIndex ].Cells[0].Text;
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["tg"].ConnectionString);
con.Open();
string strpath = "";
string strselect = "";
strselect = "select * from tonggao where id='" + strid + "'";
SqlDataAdapter da = new SqlDataAdapter(strselect, con);
DataSet ds = new DataSet();
da.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
strpath = ds.Tables[0].Rows[0][5].ToString();
}
con.Close();
//下载操作
string fullpathURL = Server.MapPath(strpath);
System.IO.FileInfo file = new System.IO.FileInfo(fullpathURL);
if (file.Exists)
{
Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(file.Name));
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/application/octet-stream";
Response.WriteFile(file.FullName); //使用Response对象保存文件
Response.End(); //结束Response对象
Response.Flush(); //刷新Response对象
Response.Clear(); //清空Response对象
}
else
{
this.Page.RegisterStartupScript("ss", "<script>alert('文件不存在!')</script>");
}
}
catch
{
this.Page.RegisterStartupScript("ss", "<script>alert('文件不存在!')</script>");
}
}
}
}
////////////////////////////////////////////////////////////////////////////
运行后出现的问题
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1026: ) expected
Source Error:
|
Line 27: <tr>Line 28: <td>Line 29: <asp:GridView ID="GridView1" runat="server" Line 30: AutoGenerateColumns ="false" Font-Size ="9pt" Width="457px" Line 31: onselectedindexchanged="GridView1_SelectedIndexChanged"
|
Source File: d:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx Line: 29
Show Detailed Compiler Output:
C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0> "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_global.asax.vok_fk3w.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\assembly\dl3\46319d8a\c4dd13a1_7be1cc01\通告上传和下载.DLL" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_Web_0y025be5.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\0y025be5.res" /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_Web_0y025be5.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_Web_0y025be5.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_Web_0y025be5.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f79c7201\1109367f\App_Web_0y025be5.3.cs"Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1Copyright (C) Microsoft Corporation. All rights reserved.d:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,109): error CS1026: ) expectedd:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,109): error CS1026: ) expectedd:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,120): error CS1002: ; expectedd:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,120): error CS1525: Invalid expression term ')'d:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,120): error CS1002: ; expectedd:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx(29,120): error CS1525: Invalid expression term ')'
|
Show Complete Compilation Source:
Line 1: #pragma checksum "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "75102E1A1D82449C70134B44A5B69DF8"Line 2: //------------------------------------------------------------------------------Line 3: // <auto-generated>Line 4: // This code was generated by a tool.Line 5: // Runtime Version:4.0.30319.239Line 6: //Line 7: // Changes to this file may cause incorrect behavior and will be lost ifLine 8: // the code is regenerated.Line 9: // </auto-generated>Line 10: //------------------------------------------------------------------------------Line 11: Line 12: namespace ASP {Line 13: Line 14: #line 389 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 15: using System.Linq;Line 16: Line 17: #line defaultLine 18: #line hiddenLine 19: Line 20: #line 385 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 21: using System.Collections.Generic;Line 22: Line 23: #line defaultLine 24: #line hiddenLine 25: Line 26: #line 402 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 27: using System.Xml.Linq;Line 28: Line 29: #line defaultLine 30: #line hiddenLine 31: Line 32: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 33: using System.Web.UI.WebControls;Line 34: Line 35: #line defaultLine 36: #line hiddenLine 37: Line 38: #line 392 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 39: using System.Web;Line 40: Line 41: #line defaultLine 42: #line hiddenLine 43: Line 44: #line 383 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 45: using System;Line 46: Line 47: #line defaultLine 48: #line hiddenLine 49: Line 50: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 51: using System.Web.UI;Line 52: Line 53: #line defaultLine 54: #line hiddenLine 55: Line 56: #line 401 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 57: using System.Web.UI.HtmlControls;Line 58: Line 59: #line defaultLine 60: #line hiddenLine 61: Line 62: #line 396 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 63: using System.Web.Security;Line 64: Line 65: #line defaultLine 66: #line hiddenLine 67: Line 68: #line 391 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 69: using System.Text.RegularExpressions;Line 70: Line 71: #line defaultLine 72: #line hiddenLine 73: Line 74: #line 388 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 75: using System.Configuration;Line 76: Line 77: #line defaultLine 78: #line hiddenLine 79: Line 80: #line 387 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 81: using System.ComponentModel.DataAnnotations;Line 82: Line 83: #line defaultLine 84: #line hiddenLine 85: Line 86: #line 390 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 87: using System.Text;Line 88: Line 89: #line defaultLine 90: #line hiddenLine 91: Line 92: #line 397 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 93: using System.Web.Profile;Line 94: Line 95: #line defaultLine 96: #line hiddenLine 97: Line 98: #line 393 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 99: using System.Web.Caching;Line 100: Line 101: #line defaultLine 102: #line hiddenLine 103: Line 104: #line 384 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 105: using System.Collections;Line 106: Line 107: #line defaultLine 108: #line hiddenLine 109: Line 110: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 111: using System.Web.UI.WebControls.WebParts;Line 112: Line 113: #line defaultLine 114: #line hiddenLine 115: Line 116: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 117: using System.Web.UI.WebControls.Expressions;Line 118: Line 119: #line defaultLine 120: #line hiddenLine 121: Line 122: #line 386 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 123: using System.Collections.Specialized;Line 124: Line 125: #line defaultLine 126: #line hiddenLine 127: Line 128: #line 395 "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config"Line 129: using System.Web.SessionState;Line 130: Line 131: #line defaultLine 132: #line hiddenLine 133: Line 134: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 135: using System.Web.DynamicData;Line 136: Line 137: #line defaultLine 138: #line hiddenLine 139: Line 140: Line 141: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]Line 142: public class downfiles_aspx : global::通告上传和下载.DownFiles, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {Line 143: Line 144: private static bool @__initialized;Line 145: Line 146: private static object @__fileDependencies;Line 147: Line 148: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 149: public downfiles_aspx() {Line 150: string[] dependencies;Line 151: ((global::通告上传和下载.DownFiles)(this)).AppRelativeVirtualPath = "~/DownFiles.aspx";Line 152: if ((global::ASP.downfiles_aspx.@__initialized == false)) {Line 153: dependencies = new string[1];Line 154: dependencies[0] = "~/DownFiles.aspx";Line 155: global::ASP.downfiles_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);Line 156: global::ASP.downfiles_aspx.@__initialized = true;Line 157: }Line 158: this.Server.ScriptTimeout = 30000000;Line 159: }Line 160: Line 161: protected System.Web.Profile.DefaultProfile Profile {Line 162: get {Line 163: return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));Line 164: }Line 165: }Line 166: Line 167: protected ASP.global_asax ApplicationInstance {Line 168: get {Line 169: return ((ASP.global_asax)(this.Context.ApplicationInstance));Line 170: }Line 171: }Line 172: Line 173: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 174: private global::System.Web.UI.HtmlControls.HtmlTitle @__BuildControl__control3() {Line 175: global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl;Line 176: Line 177: #line 7 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 178: @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTitle();Line 179: Line 180: #line defaultLine 181: #line hiddenLine 182: return @__ctrl;Line 183: }Line 184: Line 185: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 186: private global::System.Web.UI.HtmlControls.HtmlHead @__BuildControl__control2() {Line 187: global::System.Web.UI.HtmlControls.HtmlHead @__ctrl;Line 188: Line 189: #line 6 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 190: @__ctrl = new global::System.Web.UI.HtmlControls.HtmlHead("head");Line 191: Line 192: #line defaultLine 193: #line hiddenLine 194: global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl1;Line 195: Line 196: #line 6 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 197: @__ctrl1 = this.@__BuildControl__control3();Line 198: Line 199: #line defaultLine 200: #line hiddenLine 201: System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));Line 202: Line 203: #line 6 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 204: @__parser.AddParsedSubObject(@__ctrl1);Line 205: Line 206: #line defaultLine 207: #line hiddenLine 208: Line 209: #line 6 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 210: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n <style type=\"text/css\">\r\n .style1\r\n {\r\n width: 100" +Line 211: "%;\r\n }\r\n.postCon a,.postBody a,.feedbackCon a{text-decoration:underline;c" +Line 212: "olor:#0066cc;}\r\na{text-decoration:none;color:#000;}\r\n*{margin:0;padding:0;}\r\n " +Line 213: " </style>\r\n"));Line 214: Line 215: #line defaultLine 216: #line hiddenLine 217: return @__ctrl;Line 218: }Line 219: Line 220: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 221: private global::System.Web.UI.WebControls.BoundField @__BuildControl__control5() {Line 222: global::System.Web.UI.WebControls.BoundField @__ctrl;Line 223: Line 224: #line 34 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 225: @__ctrl = new global::System.Web.UI.WebControls.BoundField();Line 226: Line 227: #line defaultLine 228: #line hiddenLine 229: Line 230: #line 34 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 231: @__ctrl.DataField = "id";Line 232: Line 233: #line defaultLine 234: #line hiddenLine 235: Line 236: #line 34 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 237: @__ctrl.HeaderText = "编号";Line 238: Line 239: #line defaultLine 240: #line hiddenLine 241: return @__ctrl;Line 242: }Line 243: Line 244: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 245: private global::System.Web.UI.WebControls.BoundField @__BuildControl__control6() {Line 246: global::System.Web.UI.WebControls.BoundField @__ctrl;Line 247: Line 248: #line 35 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 249: @__ctrl = new global::System.Web.UI.WebControls.BoundField();Line 250: Line 251: #line defaultLine 252: #line hiddenLine 253: Line 254: #line 35 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 255: @__ctrl.DataField = "title";Line 256: Line 257: #line defaultLine 258: #line hiddenLine 259: Line 260: #line 35 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 261: @__ctrl.HeaderText = "标题";Line 262: Line 263: #line defaultLine 264: #line hiddenLine 265: return @__ctrl;Line 266: }Line 267: Line 268: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 269: private global::System.Web.UI.WebControls.BoundField @__BuildControl__control7() {Line 270: global::System.Web.UI.WebControls.BoundField @__ctrl;Line 271: Line 272: #line 36 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 273: @__ctrl = new global::System.Web.UI.WebControls.BoundField();Line 274: Line 275: #line defaultLine 276: #line hiddenLine 277: Line 278: #line 36 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 279: @__ctrl.DataField = "author";Line 280: Line 281: #line defaultLine 282: #line hiddenLine 283: Line 284: #line 36 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 285: @__ctrl.HeaderText = "发布人";Line 286: Line 287: #line defaultLine 288: #line hiddenLine 289: return @__ctrl;Line 290: }Line 291: Line 292: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 293: private global::System.Web.UI.WebControls.BoundField @__BuildControl__control8() {Line 294: global::System.Web.UI.WebControls.BoundField @__ctrl;Line 295: Line 296: #line 37 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 297: @__ctrl = new global::System.Web.UI.WebControls.BoundField();Line 298: Line 299: #line defaultLine 300: #line hiddenLine 301: Line 302: #line 37 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 303: @__ctrl.DataField = "dates";Line 304: Line 305: #line defaultLine 306: #line hiddenLine 307: Line 308: #line 37 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 309: @__ctrl.HeaderText = "发布日期";Line 310: Line 311: #line defaultLine 312: #line hiddenLine 313: return @__ctrl;Line 314: }Line 315: Line 316: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 317: private void @__BuildControl__control10(System.Web.UI.WebControls.Style @__ctrl) {Line 318: Line 319: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 320: @__ctrl.ForeColor = global::System.Drawing.Color.Blue;Line 321: Line 322: #line defaultLine 323: #line hiddenLine 324: }Line 325: Line 326: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 327: private global::System.Web.UI.WebControls.CommandField @__BuildControl__control9() {Line 328: global::System.Web.UI.WebControls.CommandField @__ctrl;Line 329: Line 330: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 331: @__ctrl = new global::System.Web.UI.WebControls.CommandField();Line 332: Line 333: #line defaultLine 334: #line hiddenLine 335: Line 336: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 337: @__ctrl.HeaderText = "下载附件";Line 338: Line 339: #line defaultLine 340: #line hiddenLine 341: Line 342: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 343: @__ctrl.ShowCancelButton = false;Line 344: Line 345: #line defaultLine 346: #line hiddenLine 347: Line 348: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 349: @__ctrl.ShowSelectButton = true;Line 350: Line 351: #line defaultLine 352: #line hiddenLine 353: Line 354: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 355: @__ctrl.SelectText = "下载";Line 356: Line 357: #line defaultLine 358: #line hiddenLine 359: Line 360: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 361: @__ctrl.ShowHeader = true;Line 362: Line 363: #line defaultLine 364: #line hiddenLine 365: Line 366: #line 38 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 367: this.@__BuildControl__control10(@__ctrl.ControlStyle);Line 368: Line 369: #line defaultLine 370: #line hiddenLine 371: return @__ctrl;Line 372: }Line 373: Line 374: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 375: private void @__BuildControl__control4(System.Web.UI.WebControls.DataControlFieldCollection @__ctrl) {Line 376: global::System.Web.UI.WebControls.BoundField @__ctrl1;Line 377: Line 378: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 379: @__ctrl1 = this.@__BuildControl__control5();Line 380: Line 381: #line defaultLine 382: #line hiddenLine 383: Line 384: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 385: @__ctrl.Add(@__ctrl1);Line 386: Line 387: #line defaultLine 388: #line hiddenLine 389: global::System.Web.UI.WebControls.BoundField @__ctrl2;Line 390: Line 391: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 392: @__ctrl2 = this.@__BuildControl__control6();Line 393: Line 394: #line defaultLine 395: #line hiddenLine 396: Line 397: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 398: @__ctrl.Add(@__ctrl2);Line 399: Line 400: #line defaultLine 401: #line hiddenLine 402: global::System.Web.UI.WebControls.BoundField @__ctrl3;Line 403: Line 404: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 405: @__ctrl3 = this.@__BuildControl__control7();Line 406: Line 407: #line defaultLine 408: #line hiddenLine 409: Line 410: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 411: @__ctrl.Add(@__ctrl3);Line 412: Line 413: #line defaultLine 414: #line hiddenLine 415: global::System.Web.UI.WebControls.BoundField @__ctrl4;Line 416: Line 417: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 418: @__ctrl4 = this.@__BuildControl__control8();Line 419: Line 420: #line defaultLine 421: #line hiddenLine 422: Line 423: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 424: @__ctrl.Add(@__ctrl4);Line 425: Line 426: #line defaultLine 427: #line hiddenLine 428: global::System.Web.UI.WebControls.CommandField @__ctrl5;Line 429: Line 430: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 431: @__ctrl5 = this.@__BuildControl__control9();Line 432: Line 433: #line defaultLine 434: #line hiddenLine 435: Line 436: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 437: @__ctrl.Add(@__ctrl5);Line 438: Line 439: #line defaultLine 440: #line hiddenLine 441: }Line 442: Line 443: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 444: private global::System.Web.UI.WebControls.GridView @__BuildControlGridView1() {Line 445: global::System.Web.UI.WebControls.GridView @__ctrl;Line 446: Line 447: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 448: @__ctrl = new global::System.Web.UI.WebControls.GridView();Line 449: Line 450: #line defaultLine 451: #line hiddenLine 452: this.GridView1 = @__ctrl;Line 453: @__ctrl.ApplyStyleSheetSkin(this);Line 454: Line 455: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 456: @__ctrl.ID = "GridView1";Line 457: Line 458: #line defaultLine 459: #line hiddenLine 460: Line 461: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 462: @__ctrl.AutoGenerateColumns = false;Line 463: Line 464: #line defaultLine 465: #line hiddenLine 466: Line 467: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 468: @__ctrl.Font.Size = new System.Web.UI.WebControls.FontUnit(new System.Web.UI.WebControls.Unit(9D, global::System.Web.UI.WebControls.UnitType.Point));Line 469: Line 470: #line defaultLine 471: #line hiddenLine 472: Line 473: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 474: @__ctrl.Width = new System.Web.UI.WebControls.Unit(457D, global::System.Web.UI.WebControls.UnitType.Pixel);Line 475: Line 476: #line defaultLine 477: #line hiddenLine 478: Line 479: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 480: this.@__BuildControl__control4(@__ctrl.Columns);Line 481: Line 482: #line defaultLine 483: #line hiddenLine 484: Line 485: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 486: @__ctrl.SelectedIndexChanged -= new System.EventHandler(this.GridView1_SelectedIndexChanged);Line 487: Line 488: #line defaultLine 489: #line hiddenLine 490: Line 491: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 492: @__ctrl.SelectedIndexChanged += new System.EventHandler(this.GridView1_SelectedIndexChanged);Line 493: Line 494: #line defaultLine 495: #line hiddenLine 496: Line 497: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 498: @__ctrl.RowDataBound -= new System.Web.UI.WebControls.GridViewRowEventHandler(this.GridView1_RowDataBound);Line 499: Line 500: #line defaultLine 501: #line hiddenLine 502: Line 503: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 504: @__ctrl.RowDataBound += new System.Web.UI.WebControls.GridViewRowEventHandler(this.GridView1_RowDataBound);Line 505: Line 506: #line defaultLine 507: #line hiddenLine 508: Line 509: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 510: @__ctrl.RowDeleted -= new System.Web.UI.WebControls.GridViewDeletedEventHandler(this.GridView1_ RowDeleting);Line 511: Line 512: #line defaultLine 513: #line hiddenLine 514: Line 515: #line 29 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 516: @__ctrl.RowDeleted += new System.Web.UI.WebControls.GridViewDeletedEventHandler(this.GridView1_ RowDeleting);Line 517: Line 518: #line defaultLine 519: #line hiddenLine 520: return @__ctrl;Line 521: }Line 522: Line 523: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 524: private global::System.Web.UI.HtmlControls.HtmlForm @__BuildControlform1() {Line 525: global::System.Web.UI.HtmlControls.HtmlForm @__ctrl;Line 526: Line 527: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 528: @__ctrl = new global::System.Web.UI.HtmlControls.HtmlForm();Line 529: Line 530: #line defaultLine 531: #line hiddenLine 532: this.form1 = @__ctrl;Line 533: Line 534: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 535: @__ctrl.ID = "form1";Line 536: Line 537: #line defaultLine 538: #line hiddenLine 539: System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));Line 540: Line 541: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 542: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n <div>\r\n \r\n <table class=\"style1\">\r\n <tr>\r\n " +Line 543: " <td>\r\n 通告信息浏览:</td>\r\n </tr>\r\n <tr>\r" +Line 544: "\n <td>\r\n "));Line 545: Line 546: #line defaultLine 547: #line hiddenLine 548: global::System.Web.UI.WebControls.GridView @__ctrl1;Line 549: Line 550: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 551: @__ctrl1 = this.@__BuildControlGridView1();Line 552: Line 553: #line defaultLine 554: #line hiddenLine 555: Line 556: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 557: @__parser.AddParsedSubObject(@__ctrl1);Line 558: Line 559: #line defaultLine 560: #line hiddenLine 561: Line 562: #line 19 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 563: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n </td>\r\n </tr>\r\n </table>\r\n \r\n </div>\r\n " +Line 564: " "));Line 565: Line 566: #line defaultLine 567: #line hiddenLine 568: return @__ctrl;Line 569: }Line 570: Line 571: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 572: private void @__BuildControlTree(downfiles_aspx @__ctrl) {Line 573: Line 574: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 575: this.InitializeCulture();Line 576: Line 577: #line defaultLine 578: #line hiddenLine 579: System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));Line 580: Line 581: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 582: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3" +Line 583: ".org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html xmlns=\"http://www.w3.org/1" +Line 584: "999/xhtml\">\r\n"));Line 585: Line 586: #line defaultLine 587: #line hiddenLine 588: global::System.Web.UI.HtmlControls.HtmlHead @__ctrl1;Line 589: Line 590: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 591: @__ctrl1 = this.@__BuildControl__control2();Line 592: Line 593: #line defaultLine 594: #line hiddenLine 595: Line 596: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 597: @__parser.AddParsedSubObject(@__ctrl1);Line 598: Line 599: #line defaultLine 600: #line hiddenLine 601: Line 602: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 603: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n<body>\r\n "));Line 604: Line 605: #line defaultLine 606: #line hiddenLine 607: global::System.Web.UI.HtmlControls.HtmlForm @__ctrl2;Line 608: Line 609: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 610: @__ctrl2 = this.@__BuildControlform1();Line 611: Line 612: #line defaultLine 613: #line hiddenLine 614: Line 615: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 616: @__parser.AddParsedSubObject(@__ctrl2);Line 617: Line 618: #line defaultLine 619: #line hiddenLine 620: Line 621: #line 1 "D:\DotNetWorkspace\文件上传和下载功能\通告上传和下载\DownFiles.aspx"Line 622: @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n</body>\r\n</html>\r\n"));Line 623: Line 624: #line defaultLine 625: #line hiddenLine 626: }Line 627: Line 628: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 629: protected override void FrameworkInitialize() {Line 630: base.FrameworkInitialize();Line 631: this.@__BuildControlTree(this);Line 632: this.AddWrappedFileDependencies(global::ASP.downfiles_aspx.@__fileDependencies);Line 633: this.Request.ValidateInput();Line 634: }Line 635: Line 636: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 637: public override int GetTypeHashCode() {Line 638: return -1703001394;Line 639: }Line 640: Line 641: [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 642: public override void ProcessRequest(System.Web.HttpContext context) {Line 643: base.ProcessRequest(context);Line 644: }Line 645: }Line 646: }Line 647:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272