asp.net碎笔
来源:互联网 发布:上海大学 刘铮 乐乎 编辑:程序博客网 时间:2024/06/08 10:23
1、母版页的代码会在子页代码执行完才执行
2、由于Response.Write方法需要在页面写入js脚本,所以不能立刻转向redirect。需要写成:Response.Write("<script>alert('您还未登录!');location.href('Login.aspx');</script>");
3、“至少有一个参数没指定值”这个错误可能是由于sql语句对赋值的字符串没有使用''引号括起来。
4、给dataset表里加入一列
adp.Fill(ds, "cate"); ds.Tables["cate"].Columns.Add("FathName", typeof(string)); foreach(System.Data.DataRow row in ds.Tables["cate"].Rows ) { if (row["FatId"].ToString() == "0") { row["FathName"] = "一级"; } else { row["FathName"] = ds.Tables["cate"].Select("ArtCgyId=" + row["FatId"].ToString())[0]["CgyName"].ToString(); } }
- asp.net碎笔
- asp.net
- ASP。NET
- ASp.net
- Asp.net
- ASP.NET
- asp.net
- asp.net
- asp.net
- asp.net
- ASP.NET
- Asp.Net
- asp.net
- asp.net
- asp.net
- ASP.NET
- ASP.NET
- asp.net
- web 服务相关
- Android 启动Launcher
- 在VC中遍历查看进程并结束进程
- javascript定义对象的方式
- python2.43 到 python2.52
- asp.net碎笔
- 10款非常棒的开源论坛系统推荐
- 浏览器cookie机制
- jsp进行gzip压缩可行方法
- 在ssh、telnet断开之后继续执行程序
- 20个基于PHP的开源内容管理系统推荐
- libsvm的缺点
- 【Machine Learning实验2】 Logistic Regression求解classification问题
- phplot Y坐标标签显示