随笔分类 -  [01]asp.net基础

摘要:Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "attachment;filename=zT.mp4"); string filename = Serv 阅读全文
posted @ 2020-09-28 15:12 Xyang 阅读(90) 评论(0) 推荐(0)
摘要:1 Application_Start(程序启动)2.Application_BeginRequest(开始请求)3.Application_AuthenticateRequest(验证鉴别身份,身份通过后授权)4.Application_AuthorizeRequest(授权)5.Applicat 阅读全文
posted @ 2016-06-16 14:07 Xyang 阅读(239) 评论(0) 推荐(0)
摘要:... 阅读全文
posted @ 2015-08-06 16:19 Xyang 阅读(161) 评论(0) 推荐(0)
摘要:ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('投票成功!')", true); 阅读全文
posted @ 2014-08-22 09:59 Xyang 阅读(225) 评论(0) 推荐(0)
摘要:1.今天之后的3个月DateTime.Now.AddMonths(3)2.今天之前的3个月DateTime.Now.AddMonths(-3) 阅读全文
posted @ 2014-08-05 15:06 Xyang 阅读(120) 评论(0) 推荐(0)
摘要:1.页面端添加相关代码2.绑定到相应控件Label4.Text = OutputBySize(Server.HtmlDecode(newss.Contents), fid);3.相关方法 public string OutputBySize(string p_strContent, int pageid) { string m_strRet = p_strContent; int m_intPageSize = 10;//文章每页大小 int m_intCurrentPage = 1;//设置第一页为... 阅读全文
posted @ 2012-12-11 13:59 Xyang 阅读(152) 评论(0) 推荐(0)
摘要:1.网站中.cs文件中的代码发生变化时不需要重新生成即可在浏览器端相应新的代码,而WebApplication需要重新生成2.网站中没有namespace,而WebApplication中存在3.网站(website)为从asp技术转过来的开发人员提供方便4.website不利于工程化开发,出错不易发现,因为是解释性质的,而WebApplication需要预编译 阅读全文
posted @ 2012-05-25 21:42 Xyang 阅读(149) 评论(0) 推荐(0)

hi