主要的一段代码看不明白
SqlConnection conn = new SqlConnection(connection);
SqlCommand comm = new SqlCommand("Pr_Lword", conn);
comm.CommandType = CommandType.StoredProcedure;
comm.Parameters.Add(new SqlParameter("@startIndex", Globals.GetControlID.StartRecordIndex), new SqlParameter("@endIndex", Globals.GetControlID.EndRecordIndex));
其中数据层怎么得到 控件的ID啊 我想用全局变量传可是不行小弟新手 帮帮忙啊
SqlConnection conn = new SqlConnection(connection);
SqlCommand comm = new SqlCommand("Pr_Lword", conn);
comm.CommandType = CommandType.StoredProcedure;
comm.Parameters.Add(new SqlParameter("@startIndex", Globals.GetControlID.StartRecordIndex), new SqlParameter("@endIndex", Globals.GetControlID.EndRecordIndex));
其中数据层怎么得到 控件的ID啊 我想用全局变量传可是不行小弟新手 帮帮忙啊
解决方案 »
- 使用ADO.NET Entity Framework 会被注入吗
- js获取repeater中的repeater
- 百度搜索框输入关键字的时候鼠标悬停和键盘向上向下效果。
- 为什么必须加Try{}Catch 才能正常运行?请问各位给个解释吧
- membership中为用户分配角色问题
- 问个思路: 自动编号时的空号回收问题
- 请教高手一个新闻排版的问题,急!
- 请问在ASP里面的CHR(32)在C#里面换成什么表示?多谢
- 极具魅力的题目!千万不能错过哦!高手才行啊!!
- 函数重载与用Optional申明可选参数有什么区别??
- silverlight提示框
- 我现在想做关于二手网站的毕业设计不知道如何入手请高手指点一下!!
这段代码吗?建议楼主回去好好看看ado.net,找到一本书都有这东西
para[0] = new SqlParameter("@QQ", aif.Qq);
para[1] = new SqlParameter("@Name", aif.Name);
para[2] = new SqlParameter("@Gerden", aif.Gerden);
para[3] = new SqlParameter("@Birthday", aif.Birthday);
para[4] = new SqlParameter("@Hobby", aif.Hobby);
para[5] = new SqlParameter("@Email", aif.Email);
para[6] = new SqlParameter("@Address", aif.Address);
para[7] = new SqlParameter("@University", aif.University);
para[8] = new SqlParameter("@Tel", aif.Tel);
para[9] = new SqlParameter("@Re", aif.Re);
para[10] = new SqlParameter("@Photo", aif.Photo);
你参考下这样传值