悟生慧

 
上一页 1 ··· 23 24 25 26 27

2010年7月2日

js的Ajax验证

摘要: var http_request=false; function createRequest()//Ajax验证 { try//IE { http_request=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } c... 阅读全文

posted @ 2010-07-02 14:22 悟生慧 阅读(1945) 评论(0) 推荐(0)

上传图片

摘要: string reason = ""; string filename = ""; try { if (FileAlbImage.FileName != "") { bool filetf = FileUp(this.Page, FileAlbImage, new string[] { ".jpg", ".gif", ".png" }, 2 * 1024 * 1024, "D+F", "../Al... 阅读全文

posted @ 2010-07-02 13:08 悟生慧 阅读(283) 评论(0) 推荐(0)

2010年7月1日

给GridView分页

摘要: private void Bind() { GV1.DataSource = newsbll.SelectNews(); GV1.DataBind(); //分页 int pageAll = Convert.ToInt32(GV1.PageCount.ToString()); this.LblCurrentIndex.Text = "第 " + (GV1.PageIndex + 1).ToStri... 阅读全文

posted @ 2010-07-01 17:29 悟生慧 阅读(162) 评论(0) 推荐(0)

js切换图片

摘要: 阅读全文

posted @ 2010-07-01 13:57 悟生慧 阅读(147) 评论(0) 推荐(0)

给DataList每五条数据加一个样式

摘要: protected void dtSituation_ItemDataBound(object sender, DataListItemEventArgs e) { if ((e.Item.ItemIndex + 1) % 5 == 0) { Literal lit = new Literal(); lit.Text = "<hr style='border:2px dotted gray;... 阅读全文

posted @ 2010-07-01 13:45 悟生慧 阅读(202) 评论(0) 推荐(0)

视频播放

摘要: public void ViewBind(int id) { // string curFile = "http://www.pdsports.gov.cn/gzl/news/uploadfiles"; string curFile = "vido/media"; string vWidth = "320"; string vHeight = "245"; string vTitle = "浦东... 阅读全文

posted @ 2010-07-01 13:33 悟生慧 阅读(304) 评论(0) 推荐(0)

动态绑定Flash的图片和标题

摘要: public void showFlash() { IList<NewsArticle> articleList = article.ListNewsArticleByRows("22",500); int count = 0; string pics = ""; string links = ""; string texts = ""; for (int i = 0; i <... 阅读全文

posted @ 2010-07-01 13:30 悟生慧 阅读(300) 评论(0) 推荐(0)

用正则表达式截取数据库中img图片路径的方法

摘要: public static string GetImgUrl(string HTMLStr) { string str = string.Empty; Regex r = new Regex(@"<img\s+[^>]*\s*src\s*=\s*([']?)(?<url>\S+)'?[^>]*>", RegexOptions.Compiled); Match m... 阅读全文

posted @ 2010-07-01 13:24 悟生慧 阅读(810) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27

导航