コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] != null)
        {
            Control control = header.FindControl("login");
            Control logindiv = control.FindControl("ControlLogin");
            Control welcomediv = control.FindControl("ControlUserInfo");
            Label labelName = (Label)welcomediv.FindControl("lblWelcome");
            labelName.Text = "Welcome " + (string)Session["UserName"] + "!";

            logindiv.Visible = false;
            welcomediv.Visible = true;
        }

        PremiumServices ps = new PremiumServices();
        List<PremiumServices> list = ps.GetLatestPremiumServicesUI(3);

        GridView_ValueInvesting.DataSource = list;
        GridView_ValueInvesting.DataBind();

        PremiumServices ps1 = new PremiumServices();
        List<PremiumServices> list1 = ps1.GetPremiumServicesUI(4);

        GridViewArchive_ValueInvesting.DataSource = list1;
        GridViewArchive_ValueInvesting.DataBind();
    }
コード例 #2
0
ファイル: MemberZone.aspx.cs プロジェクト: udayr/USAdvisory
    protected void Page_Load(object sender, EventArgs e)
    {
        PremiumServices ps = new PremiumServices();
        int DayTradeCount = ps.GetPremiumServicesArticleCount(1);
        int PennyStocksCount = ps.GetPremiumServicesArticleCount(4);
        int ValueInvestingCount = ps.GetPremiumServicesArticleCount(3);

        lblDayTrade.Text = DayTradeCount + " Articles Updated Today";
        lblValueInvesting.Text = ValueInvestingCount + " Articles Updated Today";
        lblPennyStocks.Text = PennyStocksCount + " Articles Updated Today";
    }
コード例 #3
0
ファイル: PennyStocks.aspx.cs プロジェクト: udayr/USAdvisory
    protected void Page_Load(object sender, EventArgs e)
    {
        PremiumServices ps = new PremiumServices();
        List<PremiumServices> list = ps.GetLatestPremiumServicesUI(4);

        GridView_PennyStocks.DataSource = list;
        GridView_PennyStocks.DataBind();

        PremiumServices ps1 = new PremiumServices();
        List<PremiumServices> list1 = ps1.GetPremiumServicesUI(4);

        GridViewArchive_PennyStocks.DataSource = list1;
        GridViewArchive_PennyStocks.DataBind();
    }
コード例 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        var articleId = Int32.Parse(Request.QueryString["Id"]);
        var tradeType = Int32.Parse(Request.QueryString["TradeType"]);

        if(tradeType == DAY_SWING_TRADE)
        {
            var premiumServices = new PremiumServices();
            premiumServices = premiumServices.GetPremiumServicesByArticle(articleId);
            TradeTypeDesc.Text = premiumServices.ArticleDesc;
        }

        if(tradeType==PERFORMANCE)
        {
            var portfolio = new VirtualPortfolio();
            portfolio = portfolio.GetPortfolioByTransactionId(articleId);
            TradeTypeDesc.Text = portfolio.Updates;
        }
    }