摘要:asp.net mvc 4.6 发布到WinServer2008R2 SP1 提示 错误 Unable to load DLL 'api ms win core localization l1 2 0.dll': 找不到指定的模块 解决方法 从自己的电脑 C:\Windows\System32\do
阅读全文
摘要:ASP.NET程序,当URL后缀包含奇数个中文字符(如:/Index.aspx?wd=团团转),会出现乱码情况。解决办法有三: 方法一、设置web.config文件并改网页meta编码。 <system.web> <globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" uiCulture=...
阅读全文
摘要:打印使用js方法 window.print(); 下面是asp.net页面代码 打印出来的效果'divFoot'数据显示在打印页的最下方 在a4纸打印测试通过。 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Print1.aspx.cs" Inherits="AspTest.Web.Printl" %><!DOCTYPE htm...
阅读全文
摘要:用户控件添加了自定义事件和属性 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...
阅读全文
摘要:在asp.net中使用mshtml Com组件 需要添加接口IPersistStreamInit using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace MsHtmlWeb{ [ComVisi...
阅读全文
摘要: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...
阅读全文
摘要:获取父节点 开始调用 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...
阅读全文
摘要:用户控件 显示行号 复制代码 ? 这是一段程序代码。 <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl2.ascx.cs" Inherits="MultiDropdownSample.WebUserControl2" %><script language="javascript" type="te...
阅读全文