随笔分类 - [01]asp.net基础
摘要:Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "attachment;filename=zT.mp4"); string filename = Serv
阅读全文
摘要:1 Application_Start(程序启动)2.Application_BeginRequest(开始请求)3.Application_AuthenticateRequest(验证鉴别身份,身份通过后授权)4.Application_AuthorizeRequest(授权)5.Applicat
阅读全文
摘要:ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('投票成功!')", true);
阅读全文
摘要:1.今天之后的3个月DateTime.Now.AddMonths(3)2.今天之前的3个月DateTime.Now.AddMonths(-3)
阅读全文
摘要: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;//设置第一页为...
阅读全文
摘要:1.网站中.cs文件中的代码发生变化时不需要重新生成即可在浏览器端相应新的代码,而WebApplication需要重新生成2.网站中没有namespace,而WebApplication中存在3.网站(website)为从asp技术转过来的开发人员提供方便4.website不利于工程化开发,出错不易发现,因为是解释性质的,而WebApplication需要预编译
阅读全文
浙公网安备 33010602011771号