随笔分类 -  Asp.net

摘要:源代码1、增加AreasChildRegistration类,类继承PortableAreaRegistration2、增加引用MvcContrib3、主项目中Area文件夹下增加Web.config文件 阅读全文
posted @ 2014-09-15 17:21 kuailewangzi1212 阅读(196) 评论(0) 推荐(0)
摘要://自定义视图引擎的实质是把数据模型(moudle)和模板(View)转换成html页面,输出到客户端public class MyView:IView { string _viewPath; public MyView(string viewPath) { this._viewPath = viewPath; } public void Render(ViewContext viewContext, System.IO.TextWriter writer) { ... 阅读全文
posted @ 2013-08-18 18:56 kuailewangzi1212 阅读(262) 评论(0) 推荐(0)
摘要:public class CustomerRoute : RouteBase { //从路径中解析出controller、action以及其他参数,创建RouteData(其中包括HttpHandler),然后调用HttpHandler处理请求 public override RouteData GetRouteData(System.Web.HttpContextBase httpContext) { var virtualPath = httpContext.Request.AppRelativeCurrentExecutio... 阅读全文
posted @ 2013-08-18 18:43 kuailewangzi1212 阅读(436) 评论(0) 推荐(0)
摘要:http://api.map.baidu.com/lbsapi/creatmap/ 阅读全文
posted @ 2013-05-28 17:14 kuailewangzi1212 阅读(152) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using WPS;using System.IO;namespace dveda.Module{ class Word2PDF : IDisposable { Application wps; public Word2PDF() { wps = new Application(); } /// ... 阅读全文
posted @ 2013-05-23 19:53 kuailewangzi1212 阅读(2545) 评论(1) 推荐(0)
摘要:1、配置Module<httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="LocalLanguageModule" type="westsoft.srv.filters.LocalModul 阅读全文
posted @ 2013-05-13 20:09 kuailewangzi1212 阅读(518) 评论(0) 推荐(0)
摘要:System.Net.WebClient wc = new System.Net.WebClient(); wc.Encoding = System.Text.Encoding.UTF8; wc.DownloadFile("http://www.baidu.com/", Server.MapPath("~/static/baidu.html")); 阅读全文
posted @ 2012-08-12 11:29 kuailewangzi1212 阅读(161) 评论(0) 推荐(0)
摘要:修改.net freamwork环境为1.1就ok了 阅读全文
posted @ 2012-03-17 19:01 kuailewangzi1212 阅读(155) 评论(0) 推荐(0)
摘要:<!--黑体部分,在项目文件(.csproj)中--><Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</C 阅读全文
posted @ 2011-09-07 17:16 kuailewangzi1212 阅读(326) 评论(0) 推荐(0)
摘要:str_rtn+='&'+encodeURIComponent(keyup.id)+'='+encodeURIComponent(keyup.value);--------客户端 Server.HtmlEncode(dt.Rows[i][j].ToString());--服务器端 阅读全文
posted @ 2008-02-18 13:51 kuailewangzi1212 阅读(167) 评论(0) 推荐(0)
摘要:1、客户在浏览器中输入login.aspx2、把信息(info)提交到IIs3、IIS初始化ASPNET_ISAPI.DLL并把info传给ASPnet_ISAPI的实例4、ASPNET_ISAPI实例启动一个Asp.net工作进程(ASPNET_WP.exe),并把info传给aspnet_wp.exe5、aspnet_wp.exe创建一个APPDOMAIN(.net程序的执行环境),并加载所需... 阅读全文
posted @ 2007-07-04 14:53 kuailewangzi1212 阅读(626) 评论(0) 推荐(0)
摘要:using System;using System.Web.UI;using System.ComponentModel;namespace control{ /// /// 理解button的Click事件和TextBox的TextChanged\DropDownList.SelectedIndexChanged的区别 /// public class control1 : Control,... 阅读全文
posted @ 2007-05-18 15:08 kuailewangzi1212 阅读(1723) 评论(0) 推荐(0)
摘要:程序框架的设计与实现 在开发电子商务系统的过程中,重复性的工作在所难免,然而像权限管理、程序 的模块的添加、可扩展性等方面的工作,可以通过一定的方法避免重复性的工作以提高工作 效率,正如Pittsburgh-based LogicLibrary公司的创办人Brent Carlson所说,可以通过人工实 现。 本文将首先介绍ASP.NET的基本技术和继承技术,然后在此... 阅读全文
posted @ 2005-07-27 08:57 kuailewangzi1212 阅读(861) 评论(4) 推荐(0)