- 博客(11)
- 资源 (4)
- 收藏
- 关注
原创 aspnetpager控件的绑定
public partial class DisciplineTeamInfo : System.Web.UI.Page { DAL.DisciplineTeamInfo da = new DAL.DisciplineTeamInfo(); protected void Page_Init(object sender, EventArgs e)
2012-11-12 12:05:10 271
原创 下拉列表等控件默认值的设置
DAL.ExpertTypeInfo dc1 = new DAL.ExpertTypeInfo(); DataSet ds2 = dc1.GetAll(); drp_ExpertType.DataSource = ds2.Tables[0].DefaultView; drp_ExpertType.DataTextFiel
2012-11-12 12:04:14 766
原创 radiobuttonlist控件使用
获取值mod.IsExecllentTutor =Convert.ToBoolean(IsExecllentTutor.SelectedValue.ToString());
2012-11-12 12:03:35 359
原创 my97日期控件的使用
控件的引用 控件的添加 CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">获取控件值 mod.TitelTime = Convert.ToDateTime(cld_TitelTime.Text);
2012-11-12 12:02:57 285
原创 sql server中的存储过程代码
字段名用变量表示的存储过程代码 执行动态查询一定要用exec(“sql”)执行,if @zx='selid'begindeclare @sql varchar(400) exec('select Id,DisciplineName,DisciplineType,DisciplineGrade,ContructGrade=(select ContructGrade from Di
2012-11-12 12:01:37 250
原创 dal中执行存储过程
如实例 public bool add(M.DisciplineContructGradeInfo mod) { SqlParameter[] para ={ new SqlParameter("@zx","insert"), new SqlPara
2012-11-12 12:00:38 583
原创 droplist绑定与显示
在databindings的text属性中 写入Eval("数据库的字段名") 执行删除时,用linkbutton事件的command事件,也就是冒泡事件,无法获得前台准确id的值,在databinding 的commandArgument的自定义绑定,写入Eval("id")在后台用传入id值语句为 mod.Id = Convert.ToString(e.CommandArgume
2012-11-12 12:00:03 430
原创 droplist绑定与显示
将信息表指定id的类别读出,赋值给 ContructGrade (类别为类别表对应类别的id值)DAL.DisciplineInfo da = new DAL.DisciplineInfo(); DataSet ds = da.GetAll(id, "selid", "Id");ContructGrade = ds.Tables[0].Rows[0][4].To
2012-11-12 11:58:56 583
转载 RevealTrans.js
var isIE = (document.all) ? true : false;var $ = function (id) { return "string" == typeof id ? document.getElementById(id) : id;};var Class = { create: function() { return function() { t
2012-10-24 18:57:40 453
转载 dreamweaver网页分页
.container{ width:600px; height:314px; border:1px solid #eee; position:relative;}#idNum{ position:absolute; right:5px; bottom:5px;}#idNum li{ float: left; list-style:none; color: #
2012-10-24 18:56:47 1110
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人