sql语句汇总
摘要:1:依某字段分组取最大记录值的所有数据select * from Attachment a ,(select max(edition) edition,docno from Attachment group by docno) b where a.edition=b.edition and a.docno=b.docno order by filename,uploadtime
阅读全文
posted @
2008-01-30 15:28
heart-in-sky
阅读(116)
推荐(0)
提示框
摘要:1:后台不刷新页面(页面不停止)Page.RegisterStartupScript("msg","");2:可判断选择项后台:Button1.Attributes.Add("onclick","return confirm('是否真的删除此记录!');"); JS: if(confirm('是否真的删除此记录!')==true) jsFun(...
阅读全文
posted @
2008-01-17 17:41
heart-in-sky
阅读(134)
推荐(0)
DataGrid分页
摘要:private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { this.DataGrid1.CurrentPageIndex=e.NewPageIndex; DataBind_DataGrid(); }
阅读全文
posted @
2008-01-15 16:06
heart-in-sky
阅读(112)
推荐(0)
子控件找父控件方法:
摘要:namespace.class classname=(namespace.class)System.Web.HttpContext.Current.Handler;
阅读全文
posted @
2008-01-09 11:24
heart-in-sky
阅读(189)
推荐(0)
附件上传
摘要:<INPUT id="uploadFile"type="file" size="70" name="uploadFile" runat="server">上传方法:uploadFile.PostedFile.SaveAs(newFileName+Guid.NewGuid().ToString());判断文件大小:uploadFile.PostedFile.ContentLength&l...
阅读全文
posted @
2008-01-04 17:16
heart-in-sky
阅读(160)
推荐(0)