Beispiel #1
0
        // Method To Bind User Final Intertested List
        private void BindUserIntertestedList(int userId)
        {
            var objConsulling = new Consulling();

            try
            {
                var ds = objConsulling.GetIntertestedCollege(userId);
                if (ds.Tables[0].Rows.Count <= 0)
                {
                    return;
                }
                rptCollegeDetails.DataSource = ds.Tables[0];
                rptCollegeDetails.DataBind();
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex;
                }
                const string addInfo = "Error while executing BindUserIntertestedList in  UcUserFinalList.ascx   :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
        }
Beispiel #2
0
        // Method To Bind User Final Intertested List
        protected void BindUserIntertestedList(int userId)
        {
            Consulling ObjConsulling = new Consulling();
            DataSet    ds            = new DataSet();

            try
            {
                ds = ObjConsulling.GetIntertestedCollege(userId);
                if (ds != null && ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        hndCollegeList.Value         = ds.Tables[0].Rows.Count.ToString();
                        rptCollegeDetails.DataSource = ds.Tables[0];
                        rptCollegeDetails.DataBind();
                    }
                }
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex.ToString();
                }
                const string addInfo = "Error while executing BindUserIntertestedList in UcFinalIntertestedCollegeList.ascx  :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
        }
Beispiel #3
0
        // Method To Bind User Final Intertested List
        protected void BindUserIntertestedList(int userId)
        {
            Consulling ObjConsulling = new Consulling();
            DataSet    ds            = new DataSet();

            try
            {
                ds = ObjConsulling.GetIntertestedCollege(userId);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    hndCollegeList.Value         = ds.Tables[0].Rows.Count.ToString();
                    rptCollegeDetails.DataSource = ds.Tables[0];
                    rptCollegeDetails.DataBind();
                }
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #4
0
        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            var objMailTemplates = new MailTemplates();
            var collegeName      = "";
            var objConsulling    = new Consulling();

            try
            {
                var ds = objConsulling.GetIntertestedCollege(ObjSecure.LoggedInUserId);
                if (ds != null && ds.Tables.Count > 0)
                {
                    for (var i = 0; i < ds.Tables[0].Rows.Count; i++)
                    {
                        collegeName += "<div><strong>" + (i + 1) + ". " + ds.Tables[0].Rows[i]["AjCollegeBranchName"] +
                                       "</strong></div><br/>";
                    }
                    var mail = new MailMessage
                    {
                        From    = new MailAddress(ApplicationSettings.Instance.Email),
                        Subject = "AdmissionJankari:Counselling Information"
                    };

                    var body = objMailTemplates.MailBodyForCOunsellingQuery(new SecurePage().LoggedInUserName,
                                                                            collegeName.TrimEnd(','));
                    mail.Body = body;
                    mail.To.Add(new SecurePage().LoggedInUserEmailId);
                    Utils.SendMailMessageAsync(mail);

                    Response.Redirect(Utils.ApplicationRelativeWebRoot + "counselling/Payment.aspx");
                }
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex;
                }
                const string addInfo = "Error while executing btnConfirm_Click in  UcUserFinalList.ascx   :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
        }