摘要: declare @i int,@num int,@companyid varchar(20)set @i=1set @num=(select count(distinct companyid) from finance.dbo.Bill where companyid in (select companyid from finance.dbo.Company where XiangmuUserid='250'))while @i<=@numbeginselect top 1 @companyid=companyid from finance.dbo.Bill where 阅读全文
posted @ 2011-07-18 17:25 十年如一 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 在GridView里加一个模版列,里面放一些按钮,然后呢,点击这些按钮的时候,要可以取到GridView当前被点击的行的字段里的内容一般有两种情况,只需要取一个字段的值,和要取多个字段的值,其实都是一样的方法,就是使用CommandArgument属性一、只需要取一个字段的值:在GridView里的定义<asp:TemplateField ShowHeader="False"> <ItemTemplate> <asp:Button ID="Button1" runat="server" Text=&quo 阅读全文
posted @ 2011-07-18 11:04 十年如一 阅读(1059) 评论(0) 推荐(0) 编辑