- 博客(8)
- 收藏
- 关注
原创 时间处理:字符串转换成时间
Label6.Text=Convert.ToDateTime(dr["f3_date"].ToString()).ToShortDateString().ToString();DateTime.Now.tostring() Convert.ToDateTime(Eval("addDate")).ToString("MM-dd")
2006-01-22 14:25:00 1068
原创 datagrid 显示+编辑
datagrid:... AllowPaging="True" DataKeyField="u_id" OnEditCommand="DataGrid_Edit"> Height="16px"> >
2006-01-22 14:23:00 710
原创 SqlTransaction
public void RunSqlTransaction(string myConnString) { SqlConnection myConnection = new SqlConnection(myConnString); myConnection.Open(); SqlCommand myCommand = myConnection.CreateCommand();
2006-01-10 23:38:00 999
原创 存储过程1——读取数据
protected System.Web.UI.WebControls.DataGrid DataGrid1; SqlConnection conn=new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["dsn"]); private void Page_Load(object sender, Sy
2006-01-10 23:12:00 860
原创 绑定dataset
if(!Page.IsPostBack) { SqlConnection conn = new SqlConnection(con); conn.Open(); string strSql = "select * from 公告"; SqlCommand cm = new SqlCommand(strSql,conn); SqlDataAdapter Adapte
2006-01-10 22:59:00 1101
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人