zlb

随笔分类 -  ASPNet

Unable to load DLL 'api-ms-win-core-localization-l1-2-0.dll': 找不到指定的模块
摘要:asp.net mvc 4.6 发布到WinServer2008R2 SP1 提示 错误 Unable to load DLL 'api ms win core localization l1 2 0.dll': 找不到指定的模块 解决方法 从自己的电脑 C:\Windows\System32\do 阅读全文

posted @ 2018-01-30 11:24 zlb 阅读(1926) 评论(0) 推荐(0) 编辑

ASP.NET, IE6下URL中文乱码问题
摘要:ASP.NET程序,当URL后缀包含奇数个中文字符(如:/Index.aspx?wd=团团转),会出现乱码情况。解决办法有三: 方法一、设置web.config文件并改网页meta编码。 <system.web> <globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" uiCulture=... 阅读全文

posted @ 2012-02-29 11:04 zlb 阅读(257) 评论(0) 推荐(0) 编辑

aspnet打印 设置(页脚 一些数据显示在打印页的最下面)
摘要:打印使用js方法 window.print(); 下面是asp.net页面代码 打印出来的效果'divFoot'数据显示在打印页的最下方 在a4纸打印测试通过。 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Print1.aspx.cs" Inherits="AspTest.Web.Printl" %><!DOCTYPE htm... 阅读全文

posted @ 2012-02-05 16:36 zlb 阅读(494) 评论(0) 推荐(0) 编辑

aspnet自定义控件Treeview基本用法
摘要:用户控件添加了自定义事件和属性 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace AspNet.UserControl.Organization{ public p... 阅读全文

posted @ 2011-10-24 17:12 zlb 阅读(705) 评论(0) 推荐(0) 编辑

Asp.net中使用mshtml
摘要:在asp.net中使用mshtml Com组件 需要添加接口IPersistStreamInit using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace MsHtmlWeb{ [ComVisi... 阅读全文

posted @ 2011-10-19 17:34 zlb 阅读(1360) 评论(0) 推荐(0) 编辑

VS 2010Asp.net项目发布出错 TransformXml task failure
摘要:vs2010 发布web项目 出错 错误如下 The "TransformXml" task failed unexpectedly.System.UriFormatException: Invalid URI: The URI is empty. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) a... 阅读全文

posted @ 2011-05-13 14:58 zlb 阅读(912) 评论(0) 推荐(0) 编辑

ASP.Net DropDownList绑定树状结构
摘要:获取父节点 开始调用 listSource 是List<> 数据集合 (有父子关系) foreach (ModelInfo Item in listSource) { if (Item.ParentID == 0) { ListItem li = new ListItem(); li.Text = Item.Item; li.Value = Item.ID.ToString(); YouDrop... 阅读全文

posted @ 2011-03-28 11:22 zlb 阅读(524) 评论(0) 推荐(0) 编辑

Asp.net 中DropDownList下拉列表显示Treeview
摘要:用户控件 显示行号 复制代码 ? 这是一段程序代码。 <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl2.ascx.cs" Inherits="MultiDropdownSample.WebUserControl2" %><script language="javascript" type="te... 阅读全文

posted @ 2011-03-08 17:06 zlb 阅读(2229) 评论(0) 推荐(0) 编辑

导航

统计

点击右上角即可分享
微信分享提示