本文整理汇总了C#中DBFunctions.getresultbyids方法的典型用法代码示例。如果您正苦于以下问题:C# DBFunctions.getresultbyids方法的具体用法?C# DBFunctions.getresultbyids怎么用?C# DBFunctions.getresultbyids使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBFunctions
的用法示例。
在下文中一共展示了DBFunctions.getresultbyids方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if(Session["Role"]!="Student")
{
Response.Redirect("../Login.aspx");
}
if (!IsPostBack)
{
DBFunctions db = new DBFunctions();
string pagename = Path.GetFileName(Request.PhysicalPath);
if (Session["userid"]==null)
{
Response.Redirect("../Login.aspx?Redirecturl=" + pagename);
}
string tabs = "";
if (Request.QueryString["tab"] != null)
tabs = Request.QueryString["tab"];
if (Request.QueryString["course"] != null)
{
if (Request.QueryString.ToString().Contains("page"))
{
pages = Convert.ToInt32(Request.QueryString["page"].ToString());
}
int courseid = int.Parse(Request.QueryString["course"]);
int userid = int.Parse(Session["userid"].ToString());
List<Results_tbl> ds = new List<Results_tbl>();
ds = db.getresultbyids(courseid, userid);
loadResult(ds);
if (tabs == "")
{
loadattendance(1);
loadcourseassignments(1);
loadCourseVideos(1);
loadLectures(1);
loadBooks();
loadQuizz(1);
}
if (tabs == "Attendance")
{
loadattendance(pages);
loadcourseassignments(1);
loadCourseVideos(1);
loadLectures(1);
loadBooks();
loadQuizz(1);
}
if (tabs == "assignments")
{
loadcourseassignments(pages);
loadattendance(1);
loadCourseVideos(1);
loadLectures(1);
loadBooks();
loadQuizz(1);
}
if (tabs == "videos")
{
loadCourseVideos(pages);
loadattendance(1);
loadcourseassignments(1);
loadLectures(1);
loadBooks();
loadQuizz(1);
}
if (tabs == "lectures")
{
loadattendance(1);
loadLectures(pages);
loadcourseassignments(1);
loadCourseVideos(1);
loadBooks();
loadQuizz(1);
}
if (tabs == "books")
{
loadBooks();
loadcourseassignments(1);
loadCourseVideos(1);
loadLectures(1);
loadattendance(1);
loadQuizz(1);
}
if (tabs == "quizz")
{
loadQuizz(pages);
loadcourseassignments(1);
loadCourseVideos(1);
loadLectures(1);
loadBooks();
loadattendance(1);
//.........这里部分代码省略.........