当我尝试ContentType
在*.aspx
页面上使用时,它工作正常。
Response.ContentType = ContentType;
但是当我尝试使用 on 时*.ascx
,出现以下错误:
当前上下文中不存在名称“ContentType”
我应该如何解决这个问题?!
当我尝试ContentType
在*.aspx
页面上使用时,它工作正常。
Response.ContentType = ContentType;
但是当我尝试使用 on 时*.ascx
,出现以下错误:
当前上下文中不存在名称“ContentType”
我应该如何解决这个问题?!