自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 asp.net GridView当鼠标经过时,设置颜色,设置表头背景 ,点击行触发SelectedIndexChanged事件

1.首先在页面 <% Page %> 中增加 EnableEventValidation="false"2.在RowDataBound中给每一行添加事件  protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)    {                    //首先判断是...

2018-04-28 10:35:26 795

原创 asp.net GridView 隐藏列、设置列宽

    protected void GridView2_RowCreated(object sender, GridViewRowEventArgs e)    {        if (e.Row.Cells.Count >= 4)        {            e.Row.Cells[0].Visible = false;//设置第1列为隐藏列              e....

2018-04-28 10:31:12 967

原创 C# JSON转成实体对象

调用:modelEntJson eJson = JsonHelper.DeserializeJsonToObject<modelEntJson>(strjson); List<modelEntResouces> EntResources = JsonHelper.DeserializeJsonToList<modelEntResouces>(strEntReso...

2018-04-28 10:28:50 11751

原创 asp.net 调用HTTP接口并使用post传递参数

后台代码:调用:      //POST                IDictionary<string, string> parameters = new Dictionary<string, string>();                parameters.Add("sql", strSql);                parameters.Add("...

2018-04-28 10:21:25 9412 1

原创 C# LINQ对datatable中的数据排序分组统计计算

后台代码:datatable:dtSource//汇总统计 var q1 = from dt1 in dtSource.AsEnumerable()//查询 orderby dt1.Field<string>("字段1") descending//排序 ...

2018-04-28 10:13:22 3759

原创 asp.net UpdatePanel中弹出提示信息

后台代码: ScriptManager.RegisterStartupScript(UpdatePanel2, this.GetType(), "提示", "alert(' 删除成功!')", true);

2018-04-28 10:02:57 524

原创 ASP.NET DIV后台控制隐藏及显示

前台:&lt;div id="divPlatTop" runat="server" style="border: solid 0px #0094ff; background: #fff; padding: 3px; z-index: 1; position: relative; display: none; top: 0px; margin: 0 auto; width: 100%; height...

2018-04-28 10:01:02 4127

原创 C#获取SQLSERVER某表自增ID的当前值

SELECT IDENT_CURRENT('dtPlatGroup')表名:dtPlatGroup

2018-04-28 09:54:46 1941

原创 asp:CheckBox绑定多个值并在后台代码中获取

前台:可以根据需要定义多个要绑定的属性,下面的checkbox是放在dataList中使用的。&lt;asp:CheckBox ID="CheckBox1" argsForId='&lt;%#Eval("platFormId")%&gt;' AutoPostBack="true" OnCheckedChanged="CheckBox1_CheckedChanged"   runat="serve

2018-04-28 09:51:23 2993

C#通过系统日志获取开关机时间【源码】

通过系统日志获取开关机时间的源码。可扩展获取系统错误码等等信息。

2011-03-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除