随笔分类 -  asp.net

摘要:[代码] 阅读全文
posted @ 2009-08-03 11:00 刚子blog 阅读(505) 评论(3) 推荐(0)
摘要:<a href='<%= this.ResolveUrl("~/Index/index/TrainBaseDetail.aspx?id=") %><%#Eval("ID")%>' target="_blank"><%#Eval("TrainBaseName")%></a> 阅读全文
posted @ 2009-07-29 19:31 刚子blog 阅读(290) 评论(0) 推荐(0)
摘要:如果测试的url地址是http : //www.test.com/testweb/default.aspx, 结果如下: Request.ApplicationPath: /testweb Request.CurrentExecutionFilePath: /testweb/default.aspx Request.FilePath: /testweb/default.aspx Request.P... 阅读全文
posted @ 2009-07-27 17:02 刚子blog 阅读(294) 评论(0) 推荐(0)
摘要:/*分页按钮样式*//*橙色 拍拍网*//*.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decorat... 阅读全文
posted @ 2009-07-20 11:13 刚子blog 阅读(1173) 评论(0) 推荐(0)
摘要: protected String createNews() { string[] arr = new string[] { "", "", "", "" }; StringWriter sww = new StringWriter(); string Url = "http://" + Request.Url.Authority + this.ResolveUrl("~"); System.Text.StringBuilder HTML = new StringBuilder(); HTML.Append(getHtml(Url + "MS/CMSadmin/newsDemo/listinfo-1.html")); for (int i = 0; i arr.Length; i++) { switch (arr 阅读全文
posted @ 2009-07-18 13:43 刚子blog 阅读(205) 评论(0) 推荐(0)