`
wyf
  • 浏览: 433284 次
  • 性别: Icon_minigender_1
  • 来自: 唐山
社区版块
存档分类
最新评论
文章列表
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text; /// <s ...

sql存储过程分页

    博客分类:
  • SQL
ALTER procedure Consignment @tablename varchar(80) , @strOrder varchar(50) , @PageIndex int = 1, @PageSize int = 15, @strGetFields varchar(200) = '*', @OutPut int output as Begin Declare @strSql varchar(500) DECLARE @SQL NVARCHAR(1000) DECLARE @R BIGINT ...
.Net牛人应该知道些什么(转) 收藏 <script type="text/javascript"> document.body.oncopy = function() { if (window.clipboardData) { setTimeout(function() { var text = clipboardData.getData(&quot;text&quot;); ...
DECLARE @IntVariable int; DECLARE @SQLString nvarchar(500); DECLARE @ParmDefinition nvarchar(500); /* Build the SQL string one time.*/ SET @SQLString = N'SELECT * FROM AdventureWorks.HumanResources.Employee WHERE ManagerID = @ManagerID'; SET @ParmDefinition = N'@ManagerID tinyint' ...
1、使用后台的类 GridView绑定数据时解决文字过长问题,用于新文标题...效果 首先,写一个抽象类,一个静态函数。 public abstract class TStringOp { public static string trunc(string inStr, int len) { if (inStr.Length > len) { inStr = inStr.Substring(0, len)+"..."; } return i ...
Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径 Request.ServerVariables("Path_Translated") 通过由虚拟至物理的映射后得到的路径 Request.ServerVariables(& ...
//1.添加引用-〉com-〉microsoft excel 11.0 //2.若出现错误:命名空间“Microsoft.Office”中不存在类型或命名空间名称“Interop”(是缺少程序集引用吗?) //解决方法:先删除引用中的Excel,然后找到文件Microsoft.Office.Interop.Excel.dll,手动添加该文件的引用 using System; using System.Data; using System.Reflection; using System.IO; using Microsoft.Office.Core; using Sy ...

C#反射

首先我们建立一个类库,将它生成为HelloWorld.dll, using System; namespace Webtest { public interface interface1 { int add(); } public class ReflectTest:interface1 { public String Write; private String Writec; public S ...

动态linq

public static Func<T,Tkey> DynamicLambda<T, Tkey>(string propertyName) { ParameterExpression p = Expression.Parameter(typeof(T), "p"); Expression body = Expression.Property(p, typeof(T).GetProperty(propertyName)); ...

Js获取URL地址参数

    博客分类:
  • JS
function getUrlParam(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r!=null) return unescape(r[2]); return null; ...
主要用到了几个类文件: Channel.cs 、ChannelCollection.cs 、 Feed.cs 、 Item.cs  、 ItemCollection.cs 下面给出各个类的源文件: 1、Channel.cs 类 using System; namespace Utility.Rss { /// <summary> /// channel /// </summary> [Serializable()] public class Channel { pri ...
/// <summary> /// 获取Rss资源 /// </summary> /// <param name="RssURL"></param> /// <returns></returns> public static DataTable ReadRss(string RssURL) { DataTable Dt = new DataTable(); DataColumn Title = new DataColumn("Title", typ ...
用表格做网页排版的时候,一般都能正常使用。偏偏有时会碰到一段连续的英文词或者一堆感叹号(!!!)把网页就撑开的现象:( 总结了一下,只要在CSS中定义了如下句子,可保网页不会再被撑开了。 table{table-layout: fixed;} td{word- ...
<script type="text/javascript"> function cleartextbox() { var els = $("input:text"); els.each( function(i) { $(this).val(""); } ); } </script>  
static void Main(string[] args) { string [] jsonDates = {"/Date(1242357713797+0800)/" , "/Date(1242357722890+0800)/"}; foreach (string jsonDate in jsonDates) { Console.WriteLine("Json : {0}", jsonDate) ...
Global site tag (gtag.js) - Google Analytics