ods.SelectMethod = "GetNewsByTitle";
还要指定哪个程序集中的哪个类
<asp:ObjectDataSource ID="objRegisterStudentByClass" runat="server" SelectMethod="GetRegisterStudents" TypeName="Ability.DAL.Student.StudentManager"/>
还要指定哪个程序集中的哪个类
<asp:ObjectDataSource ID="objRegisterStudentByClass" runat="server" SelectMethod="GetRegisterStudents" TypeName="Ability.DAL.Student.StudentManager"/>
解决方案 »
- 6点前要交的..sql 一个序号的问题.在线等速度来人.
- 怎样赋值static readonly类型变量?
- DropDownList控件怎么老象一个"坑"似的?
- ItemTemplate里插入用户控件的问题!
- 怎样从字串得到类
- 怎么样才能使客户不能访问我IIS虚拟目录中除指定网页以外的网页???
- ST_ID.BackColor = "#00ff00",设置背景颜色 是怎么设的呢?
- 学习英语用mp3好还是录音笔好,说明各自的优势
- 如何用VB或C#读SQL数据库结构的字段名和字段描述(标题),
- 求助,不包含AddToUsers的定义
- DataBinder.Eval(Container.DataItem, "id")字段名是变量时怎么办?
- 求一个像写邮件的文本编辑器,要有表情选择,可选背景信纸,其它还有一些基本功能就行
<SCRIPT runat="server">
private void UpdateRecords(Object source, EventArgs e)
{
CheckBox cb;
foreach(GridViewRow row in this.GridView1.Rows) {
cb = (CheckBox) row.Cells[0].Controls[1];
if(cb.Checked) {
string oid = (string) row.Cells[1].Text;
MyAccessDataSource.UpdateParameters.Add("date", TypeCode.DateTime, DateTime.Now.ToString());
MyAccessDataSource.UpdateParameters.Add("orderid", oid);
MyAccessDataSource.Update();
MyAccessDataSource.UpdateParameters.Clear();
}
}
}
</SCRIPT>