当前位置: 首页>>代码示例>>C#>>正文


C# DBFunctions.getusermail方法代码示例

本文整理汇总了C#中DBFunctions.getusermail方法的典型用法代码示例。如果您正苦于以下问题:C# DBFunctions.getusermail方法的具体用法?C# DBFunctions.getusermail怎么用?C# DBFunctions.getusermail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DBFunctions的用法示例。


在下文中一共展示了DBFunctions.getusermail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["mailid"] != null)
        {
            int mailid = int.Parse(Request.QueryString["mailid"]);
            DBFunctions db = new DBFunctions();
            var mail = db.getusermail(mailid);
            if(mail.SenderID!=null){

            fromlbl.Text = mail.Candidate_tbl.Name;
            }
            else
            {
                fromlbl.Text = "Admin";
            }
                subjectlbl.Text = mail.Subject;
            Messagelbl.Text = mail.Message;
        }
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:19,代码来源:reademail.aspx.cs

示例2: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (System.Web.HttpContext.Current.User != null)
        {
            LoggedStatus = System.Web.HttpContext.Current.User.Identity.IsAuthenticated;
            if (LoggedStatus)
            {
                UserID = Membership.GetUser().ProviderUserKey.ToString();
                if (Request.QueryString["mailid"] != null)
                {
                    int mailid = int.Parse(Request.QueryString["mailid"]);
                    DBFunctions db = new DBFunctions();
                    var mail = db.getusermail(mailid);
                    if (mail.SenderID != null)
                    {

                        fromlbl.Text = mail.Candidate_tbl.Name;
                    }
                    else
                    {
                        fromlbl.Text = "Admin";
                    }
                    subjectlbl.Text = mail.Subject;
                    Messagelbl.Text = mail.Message;
                    if (mail.Subject == "Acceptance Fee")
                    {
                        DatabaseFunctions d = new DatabaseFunctions();
                        string form = "";
                        form = d.getFormumber();
                        if (form != "")
                        {
                            int admissionRowID = d.getAdmissionRow(form);
                            DataSet ds = d.loadAdmission(form);
                            if (ds.Tables[0].Rows.Count > 0)
                            {
                                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                                {

                                    string ID = ds.Tables[0].Rows[i]["ID"].ToString();
                                    string programname = ds.Tables[0].Rows[i]["Program_Admitted"].ToString();
                                    string department = ds.Tables[0].Rows[i]["Department_Admitted"].ToString();
                                    string campus = ds.Tables[0].Rows[i]["Campus_Admitted"].ToString();
                                    int acceptancefee = Convert.ToInt16(ds.Tables[0].Rows[i]["AcceptanceFeePaid"].ToString());
                                    int biometricsCompleted = Convert.ToInt16(ds.Tables[0].Rows[i]["BiometricsCompleted"].ToString());
                                    string action = string.Empty;





                                    if (acceptancefee == 0)
                                    {
                                        text = "<a class=\"btn btn-danger\" href=\"PaymentPage.aspx?acceptanceFee=" + ID + "&admission=" + admissionRowID + "\">Pay Acceptance Fee</a>";
                                    }
                                }
                            }
                        }
                    }
                    FeeButton.Text = text;
                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
        }
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:67,代码来源:reademail.aspx.cs


注:本文中的DBFunctions.getusermail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。