本文整理汇总了C#中Student.GetStudentByRowID方法的典型用法代码示例。如果您正苦于以下问题:C# Student.GetStudentByRowID方法的具体用法?C# Student.GetStudentByRowID怎么用?C# Student.GetStudentByRowID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Student
的用法示例。
在下文中一共展示了Student.GetStudentByRowID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
GenerateCalendar();
GenerateTaskOnCalendar();
Student stu = new Student();
//string strOID = stu.GetFirstStudentID();
int firstRowID = 1;
string strOID = stu.GetStudentByRowID(firstRowID);
ViewState["RowID"] = firstRowID;
int StdOID = stu.GetStudentOIDByStudentBannerID(strOID);
//dtStudents =
ViewState["StuID"] = StdOID;
string fassName = "";
Sections sec = new Sections();
Populate(Convert.ToString(strOID));
populateDropdownList();
fassName = sec.GetFirstAssessmentName();
//PopulateSection(ddlAssesment.Text, Convert.ToInt32(StdOID));
PopulateSection(ddlAssesment.Text, strOID);
PopulateSectionNoScore(ddlAssesment.Text, strOID);
Initialization();
populateChart();
}
}
示例2: lbtnPrev_Click
protected void lbtnPrev_Click(object sender, EventArgs e)
{
int OID = 0;
Student stu = new Student();
int rowid = Convert.ToInt32(ViewState["RowID"]);
rowid--;
ViewState["RowID"] = rowid;
string strID = stu.GetStudentByRowID(rowid);
OID = stu.GetStudentOIDByRowID(rowid);
//if (ViewState["StuID"] == OID.ToString())
//{
// rowid--;
//}
//ViewState["StuID"] = OID.ToString();
// Session["StudentID"] = lbtnID.Text.ToString();
lbtnNext.Enabled = true;
//OID = Prev();
//string strID = stu.GetStudentIDByStudentBannerOID(OID);
if (strID == "" || strID == null)
{
lbtnPrev.Enabled = false;
}
else
{
Populate(strID);
populateDropdownList();
PopulateSectionNoScore(ddlAssesment.Text.ToString(), strID);
PopulateSection(ddlAssesment.Text.ToString(), strID);
}
}