ASP.NET
文章平均质量分 54
ifnotok
这个作者很懒,什么都没留下…
展开
-
字符串格式化,不足位数的补0
int = 123;str = "字符串" --下面的%s对应参数str, %i对应参数intstr = string.format("这是字符串:%s 这是数字值 %i",str,int);win.messageBox(str);--%05i表示格式化为至少五位的数字,不足在前面补0str = string.format("%05i",int);win.messageBox(str);原创 2007-12-12 11:34:00 · 8179 阅读 · 0 评论 -
wcf 绑定类型
做个记录 wcf 绑定 都引用 System.ServiceModel 命名空间1 .BasicHttpBinding BasicHttpBinding 使用 HTTP 作为传输协议用于发送 SOAP 1.1 消息。 服务可以使用此绑定来公开符合 WS-原创 2011-08-11 11:33:51 · 1398 阅读 · 1 评论 -
ContentType 格式
<br />抄来的 收起来以备后用<br />不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式.<br />代码如:<% response.ContentType ="text/html" %><br /><!--#i nclude virtual="/ContentType.html" --><br /><br />显示的为网页,而<% response.ContentType ="text/plain" %><br /><!--#转载 2010-09-02 22:37:00 · 581 阅读 · 0 评论 -
.net 需要掌握的10项技术
1、WCF (Windows Communication Foundation):虽然WCF显然没有WPF或SilverLight那么吸引人,但是它却是在.NET框架下解决业务问题的基础。所以你今年至少要学习一门.NET的新技术,那你就选择WCF吧。2、ADO.NET (and LINQ):这是让你与数据层打交道的技术。并且LINQ提供了将各种数据组合起来的方法。如果以上两转载 2009-05-18 11:00:00 · 1000 阅读 · 0 评论 -
form 身份验证 角色管理
转自 http://www.cnblogs.com/yao/archive/2006/06/24/434783.html asp.net中使用基于角色role的Forms验证 asp.net中使用基于角色role的Forms验证,大致经过几下四步:1.配置系统web.configsystem.web> authentication mode="Forms" > forms na转载 2009-02-02 17:27:00 · 1064 阅读 · 0 评论 -
httpModules
在Windows平台上,HTTP 管道需要IIS的支持 运行asp.net iis 需要两个文件 ASPNET_ISAPI.DLL和 ASPNET_WP.EXE · ASPNET_ISAPI.DLL是一个ISAPI Extention他将发向IIS的请转交ASPNET_WP.EXE处理 · ASPNET_WP.EXE使用HttpRuntime对请求进行具体处理 HTTP处理管道中原创 2008-11-26 16:12:00 · 820 阅读 · 0 评论 -
地址栏里边获取问号后边的所有参数
地址 URL Http://www.contoso.com/virdir/page.html/tail 用 Request.PathInfo 获取 tail // Iterate through the Form collection and write// the values to the file with HTML encoding.// String[]原创 2008-11-26 13:15:00 · 2052 阅读 · 0 评论 -
汉字,英文,数字 验证
public string IsChina(string CString) { string intstr = "^[0-9]*[1-9][0-9]*$"; string enstr = "^[a-z]*|[A-Z]*$"; string BoolValue = ""; for (int i = 0; i {原创 2008-11-21 09:26:00 · 455 阅读 · 0 评论 -
类对象的传递,反射调用方法
Type t = typeof(f_more); MethodInfo[] miArr = t.GetMethods();// object m = Activator.CreateInstance(t); String[] param = new String[]{"aa", "bb"}; foreach (M原创 2008-09-11 16:00:00 · 495 阅读 · 0 评论 -
视频文件截取图片,asp.net c#
视频大小配成110*65不能截取图片。,不知道为什么,视频大小和工具可在在web.cofig中平配置 用 string FPath = System.Configuration.ConfigurationSettings.AppSettings["ffmpeg"];获取下 string ffmpeg = Server.MapPath("../manage/tools/ffmpeg.原创 2008-05-14 11:47:00 · 1826 阅读 · 0 评论 -
Server.Transfer 方法应用
1ASP.NET传递参数 Context.RewritePath("search.aspx", "", "c="+cname+"&&mti="+mti+""); Context.Server.Transfer("search.aspx"); 2、Server.Transfer Server.Transfer方法把执行流程从当前的ASPX文件转到同转载 2008-07-30 12:12:00 · 930 阅读 · 0 评论 -
lucene.net 收索
这是 lucene.net 的下载地址 http://www.apache.org/dist/incubator/lucene.net/下面代码出自 http://blog.csdn.net/aspgreener/article/details/6073691原创 2011-08-18 14:34:54 · 743 阅读 · 0 评论