- 博客(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后台控制隐藏及显示
前台:<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中使用的。<asp:CheckBox ID="CheckBox1" argsForId='<%#Eval("platFormId")%>' AutoPostBack="true" OnCheckedChanged="CheckBox1_CheckedChanged" runat="serve
2018-04-28 09:51:23
2993
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅