上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 新建文件夹:新建文件夹:1:字母键区右下角挨着ctrl的右标键 或 shift+F102:W3:F 阅读全文
posted @ 2011-07-13 08:59 hen 阅读(172) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2011-07-12 16:26 hen 阅读(7) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Office.Interop.Excel; 针对office 2003需添加引用Microsoft Excel 11.0 Object Library 如添加之后还不能用再using microsoft.office.core和excel引用的dll为Interop.Microsoft.Office.Core.dllInterop.Excel.dllExcel导出类:using System;using System.IO;using System.Data;using Microsoft.Office.Interop.Excel; /// <summar 阅读全文
posted @ 2011-07-11 17:31 hen 阅读(3123) 评论(0) 推荐(0) 编辑
摘要: convert(varchar(10),字段名,转换格式)CONVERT(nvarchar(10),count_time,121)CONVERT为日期转换函数,一般就是在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相互转换的时候才用到的函数的3个参数,第1个参数为,转换后的大小,第2个为转换日期的字段或函数,第3个为转换的格式.具体如下:0 | 0 or 100 | mon dd yyyy hh:miAM(或PM) 1 | 101 | mm/dd/yy 2 | 102 | yy-mm-dd 3 | 103 | d 阅读全文
posted @ 2011-07-08 14:17 hen 阅读(533) 评论(0) 推荐(0) 编辑
摘要: VS系统通用快捷键:1、自动排版(类似VC6中的Alt+F8) 编辑.格式化选定内容 Ctrl + K,Ctrl + F 根据周围的代码行,正确缩进选定的代码行。 2、注释与去掉注释功能。 编辑.注释选定内容 Ctrl + K,Ctrl + C 使用编程语言的正确注释语法将代码的当前行标记为注释。 编辑.取消注释选定内容 Ctrl + K,Ctrl + U 从代码的当前行中移除注释语法。 将插入点移动到文档中的下一个大括号处。 编辑.转到大括号 Ctrl + ] 将插入点移动到文档中的下一个大括号处。 编辑.向下滚动一行 Ctrl + 向下键 将文本向下滚动一行。仅可用于文本编辑器。 编辑.向 阅读全文
posted @ 2011-07-08 08:56 hen 阅读(10486) 评论(0) 推荐(2) 编辑
摘要: 后台: 存值 (使用 HttpUtility.UrlEncode 进行编码)Response.Cookies("ABC").Value = HttpUtility.UrlEncode("ABC") 取值 (使用 HttpUtility.UrlDecode 进行解码)Str = HttpUtility.UrlDecode(Request.Cookies("ABC").Value)和JS进行交互:在用js生成的cookie生用asp.net后台来读取的时候发现中文乱码解决方法System.Text.Encoding enc = Syste 阅读全文
posted @ 2011-07-07 14:00 hen 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1. ?? 可能是一个被遗忘的运算符,很少看到有人用它,它的用法很简单却很实用: variable ?? defaultValue 相当于 variable == null ? defaultValue : variable2. asp.net 中止当前请求直接返回 Response.End(); 在做权限判断的时候可能用到 结合: HttpContext.Response.Redirect("url name"); //跳转 Response.End(); //中断请求直接返回3.将两个字符串合并成一个路径 Path.Combine(sFilePath1,sFilePat 阅读全文
posted @ 2011-07-07 13:37 hen 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 标签内文字自动换行: style= "word-break:break-all;word-wrap:break-word "文字垂直居中: vertical-align:middle;文字水平居中: text-align:center; 阅读全文
posted @ 2011-07-07 10:13 hen 阅读(238) 评论(0) 推荐(0) 编辑
摘要: ASP.Net (.cs文件)向前台注册JS脚本ClientScript.RegisterStartupScript (ClientScript.GetType (), "myscript ", "<script type=\"text/javascript\">alert('问题类型,活动名称不能为空')</script> "); 阅读全文
posted @ 2011-07-06 13:56 hen 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: 请先调用dialog JSvar diag = new Dialog();//窗体大小diag.Width = 300;diag.Height = 150;//窗体IDdiag.Title = "内容页为隐藏的元素的html";//需要显示的内容窗体IDdiag.InvokeElementId="forlogin"//是否显示确认按钮diag.OKEvent = function(){$id("username").value||Dialog.alert("用户名不能为空");$id("userpwd&q 阅读全文
posted @ 2011-07-06 09:36 hen 阅读(41947) 评论(1) 推荐(1) 编辑
摘要: CSS 控制:<style>body{ -moz-user-select:none; hutia:expression(this.onselectstart=function(){return(false)});}</style>JS 控制:onselectstart="return false"; 阅读全文
posted @ 2011-06-30 17:05 hen 阅读(2730) 评论(0) 推荐(0) 编辑
摘要: 1. 是否是数字判断:public static bool IsNumber(string strNumber){ Regex regex = new Regex("[^0-9]"); return !regex.IsMatch(strNumber);} 阅读全文
posted @ 2011-06-30 10:50 hen 阅读(364) 评论(0) 推荐(0) 编辑
摘要: declare @p2_output intexec [pr_view_order_status] @p2_output output ,@NowPage =1 ,@VenderID=65select @p2_outputALTER PROCEDURE [dbo].[pr_Sys_InquiryOfOrdering] --修改CREATE PROCEDURE pr_Sys_ServiceRequest --创建 @outCount int output, @NowPage int =1, @PageSize int=20,ASBEGIN --写内容ENDGO 阅读全文
posted @ 2011-06-29 15:37 hen 阅读(348) 评论(0) 推荐(0) 编辑
摘要: //报表定义ReportViewer reportViewer = new ReportViewer();//报表数据源ReportDataSource datasource = null; //设置数据 DataSet ds = null; //请自行绑定数据//指定报表模板地址reportViewer.LocalReport.ReportPath = Server.MapPath("temp.rdlc");//报表数据源设置datasource = new ReportDataSource("TshirtMugData_Tshirt", ds.Tab 阅读全文
posted @ 2011-06-27 10:03 hen 阅读(5420) 评论(0) 推荐(0) 编辑
摘要: 前台:<asp:TreeView ID="TreeView1" runat="server" ImageSet="Msdn" NodeIndent="10" ShowLines="True" ExpandDepth="0"> <ParentNodeStyle Font-Bold="False" /> <NodeStyle Font-Names="Verdana" Font-Size="8pt&qu 阅读全文
posted @ 2011-06-27 09:28 hen 阅读(7271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页