Asp.net源码专业站
首页->门户综合->大学课程管理系统程序源码(印度)>>Colleges/CollegeDetails.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:大学课程管理系统程序源码(印度)
当前文件:文件类型 CourseFinder/Colleges/CollegeDetails.aspx.cs[16K,2009-6-12 11:37:43]打开代码结构图
普通视图
		            
1using System; 2using System.Collections; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Web; 7using System.Web.SessionState; 8using System.Web.UI; 9using System.Web.UI.WebControls; 10using System.Web.UI.HtmlControls; 11 12 13namespace IndiaStudyChannel.Colleges 14{ 15 /// <summary> 16 /// Summary description for CollegeDetails. 17 /// </summary> 18 public partial class CollegeDetails : System.Web.UI.Page 19 { 20 protected System.Web.UI.WebControls.DataGrid dgPhotos; 21 protected string collegeName = ""; 22 protected string collegeCity = ""; 23 24 protected void Page_Load(object sender, System.EventArgs e) 25 { 26 int id = int.Parse(Request.QueryString["CollegeId"]); 27 28 ShowCollegeDetails(id); 29 30 string tab = Request.QueryString["Tab"]; 31 if ( tab == null || tab == "courses" ) 32 { 33 // We are in the courses tab.. show all courses of this college. 34 pnlCourses.Visible = true; 35 36 if ( ! Page.IsPostBack ) 37 LoadCourses(id); 38 } 39 else if ( tab == "classmates" ) 40 { 41 // We are in the classmates tab. 42 pnlClassmates.Visible = true; 43 44 // Set the default button so that when user press ENTER in this page, it will trigger the search for classmates! 45 Page.Form.DefaultButton = btnSearchClassmates.UniqueID; 46 47 if ( ! Page.IsPostBack ) 48 { 49 LoadCoursesDropdown(); 50 LoadYearsDropdown(); 51 LoadClassmates(id); 52 } 53 } 54 else if ( tab == "photos" ) 55 { 56 // We are in the photos tab. 57 pnlPhotos.Visible = true; 58 LoadPhotos(id); 59 60 string pageAction = Request.QueryString["PageAction"]; 61 if ( pageAction == "addphoto" ) 62 { 63 // User has clicked the 'Add Photos' link. Show the panel to upload photos. 64 pnlEditPhotos.Visible = true; 65 } 66 67 // If the current user is an administrator, then show the link to upload photo. 68 if ( Utils.Utils.IsAdministrator() ) 69 { 70 lblAddPhoto.Text = "<a href='CollegeDetails.aspx?CollegeId=" + Request.QueryString["CollegeId"].ToString() + "&tab=photos&pageaction=addphoto'>Add New Photo</a>"; 71 } 72 else 73 { 74 lblAddPhoto.Text = "只有管理员才有上传图片的权限,如果你有突破推荐请<a href='../general/Contactus.aspx'>发给我们</a>."; 75 } 76 } 77 } 78 79 College Details 188 189 Courses Courses 266 267 Classmates Classmates 406 407 College Photos 507 508 Web Form Designer generated code 530 531 } 532} 533
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:大学课程管理系统程序源码(印度)
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146