易截截图软件、单文件、免安装、纯绿色、仅160KB

Asp.Net中绑定时间的格式化

一直以来将数据库中的时间绑定到gridview中后,显示的后面总是会多出一串00:00:00,
原来是绑定的时候没有格式化字符串,只要在绑定时加入如下格式就对了。
<asp:BoundField DataField="FieldName" HeaderText="时间" DataFormatString="{0:d}" HtmlEncode="false">


相关文档:

asp.net中提取字符串中所包含的中文

以前没有遇到,今天以前同事问这个问题,整出来做为收藏   
直接贴代码:
protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(SenFe_Replace("沉下心去做好每一件事_2010_2_1_asp.net_你一定行"));
  & ......

Oracle支撑的asp.net2.0应用中自主实现数据依赖缓存

项目中有一些报表,本身速度就不太快,遇到数据量大的情况,更是让人抓狂,用户也提出了报表速度慢的问题,于是想着如何实现报表的数据依赖缓存,即将报表数据缓存,当数据发生改变时,再重新获取数据。
最简单的方法,是在显示报表的aspx页面第一行加上形如<%@ OutputCache Duration="600" VaryByParam="some_par ......

asp.net使用cookies

方法1:
Response.Cookies["username"].Value="gjy";
Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);
方法2:
System.Web.HttpCookie newcookie=new HttpCookie("username");
newcookie.Value="gjy";
newcookie.Expires=DateTime.Now.AddDays(1);
Response.AppendCookie(newcookie);
创建带 ......

ASP.NET Web Service协议相关

=================================================================================
How to enable an ASP.NET WebService to listen to HTTP POST calls
=================================================================================
Imagine you developed an ASP.NET WebService, but the client that nee ......

ASP.NET中常用的三十三种代码

1. 打开新的窗口并传送参数 [返回目录]
传送参数: 
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>") 
接收参数: 
string a = Request.QueryString("id"); 
string b = Request.QueryString("id1"); 
2.为按钮 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号