07 2006 档案

摘要:public partial class flyxnews_UserControl_imgchoose : System.Web.UI.UserControl{ PagedDataSource objPds = new PagedDataSource(); List<fn_titleimg> imgs = new List<fn_titleimg>(); public st... 阅读全文

posted @ 2006-07-20 17:40 fgp3 阅读(459) 评论(0) 推荐(0) |

摘要:有条件的对DataList中的特定控件进行操作DataList是用摸板来重复显示内容的容器控件,除了在前台定好要显示的内容之外,还可以在后台操作控件。先来看这样一个问题:看本站的留言本,这个留言本只有一个页面。在管理员没有登陆的时候,你看不到管理功能的选项,而当你登陆后,就可以使用管理功能。其实是通过下面的语句来实现的:<%ifsession("login")="ok"then%>de... 阅读全文

posted @ 2006-07-20 15:39 fgp3 阅读(789) 评论(1) 推荐(0) |

摘要:select top 10 * from table where id not in( select top 10 id from table order by id desc) order by id descselect top 10 * from(select Top 20 * from table_A order by id desc)更新数据时维护一个连续编号字段select * fro... 阅读全文

posted @ 2006-07-11 13:24 fgp3 阅读(193) 评论(0) 推荐(0) |

摘要:using System;namespace Theme.Services.Public{/// <summary>/// SqlstrAny 的摘要说明。/// </summary>public class ProcessRequest{public ProcessRequest(){//// TODO: 在此处添加构造函数逻辑//}#region SQL注入式攻击代码分... 阅读全文

posted @ 2006-07-11 09:28 fgp3 阅读(1057) 评论(2) 推荐(0) |

摘要:uniqueidentifier是全局唯一标识符 (GUID)NEWID()返回类型为uniqueidentifierSQL SERVER联机帮助中的例子:declare @myid uniqueidentifierset @myid=newid()print 'Value of @myid is '+cast(@myid as varchar(255))每次运行以上程序返回不同的uniqueid... 阅读全文

posted @ 2006-07-05 08:23 fgp3 阅读(333) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3