Colleges/AddStudentToCollege.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 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 AddStudentToCollege.
	/// </summary>
	public partial class AddStudentToCollege : System.Web.UI.Page
	{
		protected System.Web.UI.WebControls.TextBox txtFeesStructure;
		protected System.Web.UI.WebControls.TextBox txtSeatCount;
		protected System.Web.UI.WebControls.DropDownList ddlStudentTypes;
	
		protected void Page_Load(object sender, System.EventArgs e)
		{
            this.Page.Form.DefaultFocus = ddlCourseName.ClientID;

			// Put user code to initialize the page here
			if ( Page.IsPostBack )
				return;

			// Make sure user has logged in before can post a student.

			if ( Session["CurrentUser"] == null )
			{
				// User has not logged in. Redirect to login page and pass current URL as a query string
				// so that after login, we can redirect user back to this page again.
				Response.Redirect("../Members/Login.aspx?ReturnUrl=" + Request.Url.PathAndQuery);
			}

			// Load the list of students in the drop down.
			LoadCoursesDropdown();

			LoadYearsDropdown();

			string id = Request.QueryString["Id"];
			if ( id == null )
			{
				// No student id is passed in query string. So we are here to add a new student.
			}
			else
			{
				// Id is passed as query string. So we are here to edit a student.
				// Pre populate the student details by the id.
				LoadClassmatesDetails( int.Parse(id) );
			}	
		}

		
		protected void btnSave_Click(object sender, System.EventArgs e)
后面还有 121 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。