protected void Page_Load(object sender, EventArgs e) { //Session["OppId"] = 1; if (!Page.IsPostBack) { DataBind_OpportunityType(); DataBind_FocusArea(); DataBind_Quarter(); DataBind_CommunityPartnerPeople(); if (Session["OppId"] != null) { tbAdd.Text = "Update Opportunity"; lblTitle.Text = "Edit/View Opportunity"; if (Session["IsClone"] != null) { tbAdd.Text = "Clone Opportunity"; lblTitle.Text = "Clone Opportunity"; } Opportunity thisOpp = new Opportunity(); thisOpp = thisOpp.GetOneOpportunityById(Convert.ToInt32(Session["OppId"])); DataBind(thisOpp); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DataBind_OpportunityType(); DataBind_FocusArea(); DataBind_Quarter(); DataBind_CommunityPartnerPeople(); if (Session["FacultyOppId"] != null) { Opportunity thisOpp = new Opportunity(); thisOpp = thisOpp.GetOneOpportunityById(Convert.ToInt32(Session["FacultyOppId"])); DataBind(thisOpp); } } }