自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (5)
  • 收藏
  • 关注

原创 在ASP.NET MVC的数据模型中设置的DataAnnotation MaxLength的验证无效的解决方式

本文实例讲述ASP.NET在MVC中设置的DataAnnotation  MaxLength特性设置无效的解决方法。分享给大家供大家参考。具体分析如下:我们经常会在ASP.NET MVC项目中,给某个Model的字段设置MaxLength特性如下:public class ExampleClass{    [MaxLength(256, ErrorMessage = "最大长度256")]    ...

2018-05-18 11:10:53 896

原创 导出SQL数据库字典

SELECT  (case when a.colorder=1 then d.name else end) N表名, a.colorder N字段序号, a.name N字段名, (case when COLUMNPROPERTY( a.id,a.name,IsIdentity)=1 then √else end) N标识, (case when (SELECT

2005-03-12 14:23:00 738

原创 判断远程服务器是否运行的SQL Server函数

if exists(select 1 from sysobjects where id=object_id(fgetsstatus) and objectproperty(id,IsInlineFunction)=0) drop function fgetsstatusgocreate function fgetsstatus( @servername varchar(50)     --

2005-03-12 14:19:00 1077

原创 SQL Server人民币小写转大写的存储过程

Create PROCEDURE Convert(@n_LowerMoney numeric(15,2),@v_TransType int,@RET VARCHAR(200) output) AS   Declare @v_LowerStr VARCHAR(200) -- 小写金额 Declare @v_UpperPart VARCHAR(200) Declare @v_UpperStr VARC

2005-03-12 14:16:00 990

原创 C#版的一个加密解密类(Base64的)

public sealed class cMyCrypt {  public static byte[] MD5Encrypt(string s)  {   return (new MD5CryptoServiceProvider()).ComputeHash((new UTF8Encoding()).GetBytes(s));  }  #region 加密过程   ///   /// 加密过程 

2005-03-12 13:55:00 1581 3

原创 常用的正则表达式函数类(C#版)

Dot net 正则表达式的应用,也是dot net 开发中不可缺少的东东public class RegularFun {public RegularFun()  {  }  ///   /// 判断一个数字是否整数  ///   /// 字符串  ///   public static bool IsInteger(string strNumber)  {   Regex objNotIntP

2005-03-12 13:16:00 1157

原创 限制文件的下载(非注册用户不能下载或者你加别的权限)

          有时候需要对要下载文件加权限或者要记录下载的次数,该怎么处理呢?实际上也非常简单。下边将告诉你怎么做:         先做一个假设,假设你的下载链接是:http://202.168.102.125/download/down.aspx,要下载的文件存放在D:/WebSit/download/Code.rar。         一般情况下我们要下载一个文件,直接给这个文件加个链

2005-03-11 14:20:00 2709 1

原创 C#的反射技术详解(二)

2。动态添加和使用类型反射提供了由语言编译器(例如 Microsoft Visual Basic .NET 和 JScript)用来实现隐式晚期绑定的基础结构。绑定是查找与唯一指定的类型相对应的声明(即实现)的过程。由于此过程在运行时而不是在编译时发生,所以称作晚期绑定。Visual Basic .NET 允许您在代码中使用隐式的晚期绑定;Visual Basic 编译器将调用一个帮助器方法,该方

2005-03-11 13:54:00 2578

原创 C#的反射技术详解(一)

1。反射概述公共语言运行库加载器管理应用程序域。这种管理包括将每个程序集加载到相应的应用程序域以及控制每个程序集中类型层次结构的内存布局。程序集包含模块,而模块包含类型,类型又包含成员。反射则提供了封装程序集、模块和类型的对象。您可以使用反射动态地创建类型的实例,将类型绑定到现有对象,或从现有对象中获取类型。然后,可以调用类型的方法或访问其字段和属性。反射通常具有以下用途: 使用 Assembly

2005-03-11 13:48:00 2795

原创 为水晶报表某字段添加连接

怎么为报表的某字段添加自定义链接呢?步骤如下:1.  打开报表编辑器;2.  右键单击需要添加链接的报表字段,在弹出的菜单中选择“格式化。。”;3.  在弹出的“格式化编辑器”中选择“超级链接”;4.  选择“Internet 上的网站”单选按钮,单机公式按钮,弹出“格式化公式编辑器:超级链接文本”对话框,然后输入:”../basic/userinfo.aspx?username=”+{飞狐工作室

2005-03-11 13:12:00 1300

windows server 2012 上配置云服务

在windows server 2012 上配置云服务器以及hyper-v的使用手册

2012-12-07

SQL Server 2017 Key

SQL Server 2017 key,SQL Server 2017将带来新的功能之一就是图数据库。图数据库不像关系型数据库在一张“图”内将数据表现为节点,边和属性,而是一种抽象的数据类型,通过一组顶点节点、点和边来表现关系和连接,就像一个缠结的渔网

2018-04-13

TomcatPluginV2.zip

Plugin features Starting and stopping Tomcat 4.x, 5.x and 6.x Registering Tomcat process to Eclipse debugger Creating a WAR project (wizard can update server.xml file) Adding Java Projects to Tomcat classpath Setting Tomcat JVM parameters, classpath and bootclasspath Exporting a Tomcat project to a WAR File Capability to use a custom Tomcat classloader to load classes in several java projects at the same classloader level than classes in a Tomcat project, see readmeDevLoader.html (Thanks Martin Kahr) Installation This plugin does not contain Tomcat. (Download and install Tomcat before using this plugin). This is a design choice not to include Tomcat in the plugin distribution, this way the same plugin version can works with any Tomcat version. Download tomcatPluginVxxx.zip Unzip it in your_Eclipse_Home/plugins Plugin activation for Eclipse 3.x : - launch eclipse once using this option : -clean - if Tomcat icons are not shown in toolbar : select menu 'Window>Customize Perspective...>Commands', and check 'Tomcat' in 'Available command groups' Set Tomcat version and Tomcat home : Workbench -> Preferences, select Tomcat and set Tomcat version and Tomcat home (Tomcat version and Tomcat home are the only required fields, other settings are there for advanced configuration). This plugin launches Tomcat using the default JRE checked in Eclipe preferences window. To set a JDK as default JRE for Eclipse open the preference window : Window -> Preferences -> Java -> Installed JREs. This JRE must be a JDK (This is a Tomcat prerequisite). The plugin sets itself Tomcat classpath and bootclasspath. Use Preferences -> Tomcat ->JVM Settings, only if you need specific settings.

2013-04-28

Silverlight 大文件上传

Free Silverlight Multi File Uploader MaxFileSizeKB: File size in KBs. MaxUploads: Maximum number of simultaneous uploads FileFilter: File filter, for example ony jpeg use: FileFilter=Jpeg (*.jpg) |*.jpg CustomParam: Your custom parameter, anything here will be available in the WCF webservice DefaultColor: The default color for the control, for example: LightBlue Possible parameters: <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/mpost.SilverlightMultiFileUpload.xap" MinimumVersion="2.0.30523" Width="415" Height="280" InitParameters="MaxFileSizeKB=1000,MaxUploads=2,FileFilter=,CustomParam=1,DefaultColor=LightBlue" />

2012-12-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除