2012年8月18日
摘要:
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; public class Cookie{ /// <summary> /// Cookies赋值 /// </summary&
阅读全文
posted @ 2012-08-18 17:54
LitDev
阅读(2493)
推荐(0)
摘要:
T-SQL语句:select * from 表 where datediff(week,时间字段,getdate())=0语句中的时间字段就是表中的时间字段getdate(), 查询在当前时间一周内的数据拓展链接:http://yinzhihua2008.blog.163.com/blog/static/7943067200911534335298/
阅读全文
posted @ 2012-08-18 17:50
LitDev
阅读(1372)
推荐(0)
摘要:
aspx页面:<div>2 <ul class="items">3 <%foreach (System.Data.DataTable dt in fm.GetAll().Table[0]) { %>4 <li><a href='show?id=<%=drPro["id"].ToString() %>'><%=drPro["name"].ToString()%></a></li>5 <% } %>6 &
阅读全文
posted @ 2012-08-18 17:46
LitDev
阅读(206)
推荐(0)
2012年8月3日
摘要:
1.使用windows身份验证连接数据库 <connectionStrings> <add name="ConnStrToSQL" connectionString="Data Source=MYWORLD\SQLEXPRESS2005;Initial Catalog=Myworld;Integrated Security=SSPI;" providerName="SqlServer"/> </connectionStrings>2.使用SQL SERVER身份验证登陆<connectionS
阅读全文
posted @ 2012-08-03 14:59
LitDev
阅读(343)
推荐(0)
2012年8月1日
摘要:
create unique index 索引名称 on 表名 (字段名)
阅读全文
posted @ 2012-08-01 16:02
LitDev
阅读(204)
推荐(0)
2012年7月30日
摘要:
check --值约束alter table NewsMain add constraint check_State check(M_State in (0,1,2))unique--唯一约束create table 表名 (ID int , 要约束的字段名字 varchar(10) unique)或者:alter table 表名 add constraint 约束名称 unique(要约束字段的名称)示意:altertable NewsMain addconstraint unique_NewsId_NewsMain unique(NewsId)
阅读全文
posted @ 2012-07-30 15:32
LitDev
阅读(274)
推荐(0)
2012年7月27日
摘要:
链接:http://www.blueidea.com/tech/program/2007/4959.asp
阅读全文
posted @ 2012-07-27 11:16
LitDev
阅读(156)
推荐(0)
2012年7月10日
摘要:
网上说用VS.Net 2008光盘WCU\WebDesignerCore目录下的WebDesignerCore.exe解压后并运行解压出的Setup安装一遍"Micirosoft Office Web 创作组建"组件即可,但是我双击WebDesignerCore.exe提示正在提取文件之后就没动静了 = =原方法连接:http://hi.baidu.com/scyllake/item/9169ccc257d792b10c0a7b1e解决方法:把WebDesignerCore.exe文件解压后找到Office.zh-ch文件夹,把此文件夹全部复制后替换office2007is
阅读全文
posted @ 2012-07-10 11:45
LitDev
阅读(285)
推荐(0)
2012年6月27日
摘要:
OnClientClick方法真乃神器,客户端方法,和服务器端的onclick时间不冲突。<asp:Button ID="btnLogin" runat="server" Text="登录" Height="26px" onclick="btnLogin_Click" OnClientClick="return Check()" Width="68px" />function Check() { var name = document.getE
阅读全文
posted @ 2012-06-27 16:05
LitDev
阅读(456)
推荐(0)
2012年6月5日
摘要:
exec sp_rename 'test.dept_no' ,'dept_number', 'column'或exec sp_rename 'test.dept_no' ,'dept_number'test为表名,dept_no为要更改的字段,dept_number为更改后的字段
阅读全文
posted @ 2012-06-05 15:19
LitDev
阅读(451)
推荐(0)