![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#/ASP.NET
吃了炫迈的南孚
北漂中
展开
-
ASP.NET FileUpload.PostedFile.ContentType
FileUpload.PostedFile.ContentType文件格式stringFileUpload.PostedFile.ContentType.jpgimage/jpgFileUpload.PostedFile.ContentType.psdapplication/octet-streamFileUpload.PostedFile.ContentType.bmpimage/bmpFileUpload.PostedFile.ContentType.icoimage/x-iconFileUpload.原创 2010-09-28 17:33:00 · 2374 阅读 · 1 评论 -
动态.aspx页面生成静态.html页面 学习总结
<br />1.在源页面(ori.aspx)中写好一超链<a href="staticpage.aspx?id=<%#Eval("Id")%>"请求页面</a><br />2.在请求页面的statcipage.aspx.cs中定这样一段代码<br /> protected override void Render(HtmlTextWriter writer)<br /> {<br /> string staticFile = "static/" + Request["bId"] + ".原创 2010-10-19 13:57:00 · 418 阅读 · 0 评论 -
配置文件验证管理员登陆 学习总结
<br />刚刚学完如果用配置文件验证管理员登陆 感觉有点晕晕的 和之前用Session写登陆有些混肴了 所以写下来 总节一下 顺便清楚 一下头脑<br /><authentication mode="Forms"></authentication>是在客户端保存用户信息的方式并加密处理<br />例:<br /><authentication mode="Forms"><br /> <forms loginUrl="Manage/Login.aspx" defaultUrl="Manage/Admin原创 2010-10-19 13:47:00 · 472 阅读 · 0 评论 -
数字水印 IHttpHandler 学习总结
为图片 添加 数字水印using System;using System.Data;using System.Web;using System.Drawing.Imaging;using System.Drawing;using System.IO;/// /// WaterHandler 的摘要说明/// public class WaterHandler:IHttpHandler{ private const string WATERIMG = "~/Images/watermark.jpg";原创 2010-10-19 14:16:00 · 436 阅读 · 0 评论 -
ASP.NET中 存储过程-Procedure 使用 学习总结
<br />1.不带参数的存储过程的使用(获取数据库中所有数据表信息)<br /> SqlCommand comm=new SqlCommand();<br /> comm.Connection=conn;<br /> comm.commandType=System.Date.CommandType.StoreProcedure;<br /> comm.commandText="sp_database"; //存储过程名<br /> SqlDataReader原创 2010-10-19 14:36:00 · 353 阅读 · 0 评论 -
ASP.NET 取得 Request URL 的各个部分和通过ASP.NET获取URL地址的方法
網址:http://localhost:1897/News/Press/Content.aspx/123?id=1#tocRequest.ApplicationPath/Request.PhysicalPathD:/Projects/Solution/web/News/Press/Content.aspxSystem.IO.Path.GetDirectoryName(Request.PhysicalPath)D:/Projects/Solution/web/News/PressRequest.Physica转载 2010-10-28 09:30:00 · 300 阅读 · 0 评论