Colleges/CollegeDetails.aspx.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace IndiaStudyChannel.Colleges
{
/// <summary>
/// Summary description for CollegeDetails.
/// </summary>
public partial class CollegeDetails : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid dgPhotos;
protected string collegeName = "";
protected string collegeCity = "";
protected void Page_Load(object sender, System.EventArgs e)
{
int id = int.Parse(Request.QueryString["CollegeId"]);
ShowCollegeDetails(id);
string tab = Request.QueryString["Tab"];
if ( tab == null || tab == "courses" )
{
// We are in the courses tab.. show all courses of this college.
pnlCourses.Visible = true;
if ( ! Page.IsPostBack )
LoadCourses(id);
}
else if ( tab == "classmates" )
{
// We are in the classmates tab.
pnlClassmates.Visible = true;
// Set the default button so that when user press ENTER in this page, it will trigger the search for classmates!
Page.Form.DefaultButton = btnSearchClassmates.UniqueID;
if ( ! Page.IsPostBack )
{
LoadCoursesDropdown();
LoadYearsDropdown();
LoadClassmates(id);
}
}
else if ( tab == "photos" )
{
// We are in the photos tab.
pnlPhotos.Visible = true;
LoadPhotos(id);
string pageAction = Request.QueryString["PageAction"];
后面还有 472 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。