只有注册用户登录后才能阅读该文。 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/&g 阅读全文
摘要:
DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2009-07-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816Label4.Text = dt.ToLocalTime().ToString();//2009-07-5 21:21:25Label5.Text = dt.ToLongDateString().To 阅读全文
摘要:
首页 {dede:channelartlist typeid="top" row='18'} {dede:field name="typename"/} {dede:channel type="son"} [field:typename/] ... 阅读全文
摘要:
运行效果 拿走请您留言 ,谢谢 阅读全文
摘要:
js端 加入encodeURI $('#showtext').load("About.aspx?name=" + encodeURI($('#t3').val()), function (data) {alert(data);}) 服务器端获取 string a = Server.UrlDecode 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
//使用序列化保存对象状态到存储介质 //添加[Serializable] Game game = new Game(); game.Level = 2; game.Player = "Tom"; FileStream fs = new FileStream(@"game.bin",FileMode 阅读全文
摘要:
//将对象写入文件中 Game game = new Game(); game.Level = 2; game.Player = "Tom"; FileStream fs = new FileStream(@"game.bak",File... 阅读全文
摘要:
Gridview的的数据绑定方法有两种:一种就是datasourceid的绑定在绑定过程当中也可以通过select来选择性的绑定。二种就是databind():SqlDataAdapter da = new SqlDataAdapter(sqlstr, conn); DataSet ds = new... 阅读全文
摘要:
在Web应用程序中不能通过右键项目-〉”添加“-〉”添加ASP.NET文件夹“方式添加 。因为Web应用程序中App_Code就不存在 。不过可以通过手动的方式创建,添加一个文件夹命名为App_Code就可以了。这样子创建的和在网站中创建的App_Code的在外观上一样的。先不要高兴,没有这么简单的。你在App_Code创建类时,会发现没有智能提示。在页面后台引用时,会抱错,说不存在。解决的办法就是选中你的类文件,在属性中”高级“中的”生成操作“默认”内容“要改为编译就可以了。到这就可以了。也可以为Web应用程序项目中添加"App_LocalResources",在这个文件 阅读全文
摘要:
select Title,datepart(year,DateCreated) from CMS_Content 只取年只显示年月,不显示日:select datepart(year,getdate())*100+datepart(month,getdate()) 200811年月日格式化select CONVERT(varchar, getdate(), 120 )2004-09-12 11:06:08select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),\'-\',\'\'),\ 阅读全文