03 2011 档案

摘要:DECLARE @Str nVARCHAR(4000)SET @Str='select * from o_1023'exec (@Str)有时候sql并不是写死的,需要根据情况传入一些条件,或者值。可以用exec (@变量名)去执行。 阅读全文
posted @ 2011-03-26 14:59 nyth 阅读(268) 评论(0) 推荐(0)
摘要:再<head></head>里面加上:<meta http-equiv="pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache,must-revalidate" /><meta http-equiv="Expires" content="0" />再cs页面加上:Response.Expires = -1; 阅读全文
posted @ 2011-03-26 13:43 nyth 阅读(272) 评论(0) 推荐(0)
摘要:转载http://blog.csdn.net/x4545/archive/2008/04/03/2246791.aspxwindow.showModalDialog的基本用法showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.showModalDialog(sURL[,vArguments][,sF 阅读全文
posted @ 2011-03-26 10:42 nyth 阅读(568) 评论(1) 推荐(1)
摘要:<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%@ Import Namespace="System.Data" %><script runat="server">protected void Page_ 阅读全文
posted @ 2011-03-24 10:52 nyth 阅读(2843) 评论(0) 推荐(0)
摘要:MSDN解释:获取对服务器控件的命名容器的引用,此引用创建唯一的命名空间,以区分具有相同Control.ID属性值的服务器控件。用途如果gridview 行里面有 checkbox 的话,而且又要处理这个 checkbox 的事件,可以用 xxx.NamingContainer 获取到它的 gridviewrow 对象! 阅读全文
posted @ 2011-03-23 13:23 nyth 阅读(292) 评论(0) 推荐(1)
摘要:BoundField bf; bf = new BoundField(); bf.HeaderText =""; bf.DataField = ""; GridView1.Columns.Add(bf); 阅读全文
posted @ 2011-03-18 14:31 nyth 阅读(231) 评论(0) 推荐(1)
摘要:out关键字的特点class OutExample{ static void Method(out int i) { i = 44; } static void Main() { int value; Method(out value); // value is now 44 }}它可以返回参数的值。各位进来的朋友可以说下它的优点,以及在什么情况下用比较好! 阅读全文
posted @ 2011-03-18 13:55 nyth 阅读(250) 评论(1) 推荐(1)