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


C# Brand.getBrandDetails方法代码示例

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


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

示例1: info

    public void info()
    {
        string t = Request.QueryString["id"];
           Brand brand = new Brand();
           int brandid = int.Parse(t);
           brand = brand.getBrandDetails(brandid.ToString());

           brandlogo.Src = "Images/" + brand.Logo;
           brandlogo.Width = 100;
           brandlogo.Height = 80;
           description.InnerText = brand.BrandDescription;
           name.Text = brand.BrandName;
           website.HRef = "http://" + brand.Website;
           website.InnerText = brand.Website;

           Comments comments = new Comments();
           List<Comments> topcomments = comments.TopThreeComments(5);

           Table tblComments = new Table();

           tblComments.Width = Unit.Percentage(100);
           tblComments.Height = Unit.Percentage(100);
           TableRow tblrowcom = new TableRow();
           TableCell tblcellcom = new TableCell();

           for (int j = 0; j < topcomments.Count; j++)
           {
               tblcellcom.Text = topcomments[j].Comment;
               tblrowcom.Cells.Add(tblcellcom);
               tblComments.Controls.Add(tblrowcom);
               tblcellcom = new TableCell();
               tblrowcom = new TableRow();

               tblcellcom.Text = topcomments[j].Date.ToString();
               tblrowcom.Cells.Add(tblcellcom);
               tblComments.Controls.Add(tblrowcom);
               tblcellcom = new TableCell();
               tblrowcom = new TableRow();

           }
           phbrand.Controls.Add(tblComments);
    }
开发者ID:ziad007,项目名称:URI3,代码行数:42,代码来源:Branddetail.aspx.cs

示例2: load

    public void load()
    {
        string del = Request.QueryString["id"];
        Brand b = new Brand();
        b = b.getBrandDetails(del.ToString());

        txtbrandname.Text = b.BrandName.ToString();
        this.txtwebsite.Text = b.Website;
        this.facebook.Text = b.FacebookPage;
        this.Twitter.Text = b.TwitterPage;
        this.Youtube.Text = b.YoutubeChannel;
        this.GooglePlus.Text = b.GooglePlus;
        this.Blog.Text = b.Blog;
        this.Flickr.Text = b.Flicker;
        this.FoursquareAccount.Text = b.FourSquareAccount;
          //  this.ddlcategory.SelectedValue = b.BrandCategoryID;
        txtdiscption.InnerText = b.BrandDescription;
        b.AllowsCommentsOnWebsite = "0";
        b.USERID = del;
        this.LinkedIn.Text = b.LINKIND;
    }
开发者ID:ziad007,项目名称:URI3,代码行数:21,代码来源:EditBrand.aspx.cs

示例3: Button1_Click

    protected void Button1_Click(object sender, EventArgs e)
    {
        string del = Request.QueryString["id"];
        Brand b = new Brand();
        b = b.getBrandDetails(del.ToString());

        b.BrandName = txtbrandname.Text;
        b.Website = txtwebsite.Text;
        b.FacebookPage = facebook.Text;
        b.TwitterPage = Twitter.Text;
        b.YoutubeChannel = Youtube.Text;
        b.GooglePlus = GooglePlus.Text;
        b.Blog = Blog.Text;
        b.Flicker = Flickr.Text;
        b.FourSquareAccount = FoursquareAccount.Text;
        b.BrandCategoryID = ddlcategory.SelectedValue;
        b.BrandDescription = txtdiscption.InnerText;
        b.AllowsCommentsOnWebsite = "0";
        b.USERID = "19";
        b.LINKIND = LinkedIn.Text;
        string c = b.UpdateBrand(b);
    }
开发者ID:ziad007,项目名称:URI2,代码行数:22,代码来源:EditBrand.aspx.cs

示例4: info

    public void info()
    {
        string t = Request.QueryString["brandid"];
        Brand brand = new Brand();
        int brandid = int.Parse(t);
        brand = brand.getBrandDetails(brandid.ToString());

        desc.Text = brand.BrandDescription;
        name.Text = brand.BrandName;
        A1.HRef = "http://" + brand.Website;
        A1.InnerText = brand.Website;
        Table All = new Table();
        All.CssClass = "bdetails";
        All.Width = Unit.Percentage(100);
        All.CellPadding = 1;
        All.CellSpacing = 1;

        TableRow Allrow = new TableRow();
        TableCell Allcell = new TableCell();

        Comments testing = new Comments();
        string page = Request.QueryString["Page"];
        if (page == null) page = "1";
        int HOWMANYPAGES = 0;
        List<Comments> www = testing.getCommentall(brandid, page.ToString(), "3", out  HOWMANYPAGES);

        for (int i = 0; i < www.Count; i++)
        {
            Security.UserInfo usr = new Security.UserInfo();
            usr = usr.getUserProfile(www[i].UserID.ToString());

            Allrow = new TableRow();
            Allcell = new TableCell();
            Image imag = new Image();
            imag.Width = 40;
            imag.Height = 40;
            Allcell.Width = 40;
            imag.ImageUrl = "~/images/" + usr.PhotoUrl;
            Allcell.Controls.Add(imag);
            Allrow.Cells.Add(Allcell);

            //    Allrow.Style.Add("background-color", "#EDE9D3");
            Allcell = new TableCell();
            Allcell.Style.Add("align", "left");

            Table tbl = new Table();
            tbl.Width = Unit.Percentage(100);
            TableRow tblrow = new TableRow();
            TableCell tblcell = new TableCell();

            tblcell.Text = usr.Fname + " " + usr.Lname;
            tblcell.Style.Add("color", "blue");
            tblrow.Cells.Add(tblcell);
            tbl.Controls.Add(tblrow);

            tblrow = new TableRow();
            tblcell = new TableCell();

            tblcell.Text = www[i].Comment;
            tblcell.Style.Add("color", "blue");
            tblrow.Cells.Add(tblcell);
            tbl.Controls.Add(tblrow);

            tblrow = new TableRow();
            tblcell = new TableCell();
            LinkButton lbdelete = new LinkButton();
            tblcell.Controls.Add(lbdelete);
            lbdelete.Text = " Delete";
            lbdelete.Style.Add("text-decoration", "none");
            tblcell.Style.Add("color", "blue");
            tblrow.Cells.Add(tblcell);
            tbl.Controls.Add(tblrow);

            tblrow = new TableRow();
            tblcell = new TableCell();

            tblcell.Controls.Add(new LiteralControl("<hr>"));
            tblrow.Cells.Add(tblcell);

            tbl.Controls.Add(tblrow);

            Allcell.Controls.Add(tbl);
            Allrow.Cells.Add(Allcell);
            All.Controls.Add(Allrow);
        }

        php.Controls.Add(All);
        string firstPageUrl = "http://localhost/fuck/Brand/Branddetail.aspx";

        //SHARIF Page={0} shoule be like this
        string pagerFormat = "http://localhost/fuck/Brand/Branddetail.aspx?Page={0}";

        bottomPager.Show(int.Parse(page), HOWMANYPAGES, firstPageUrl, pagerFormat, true);
    }
开发者ID:ziad007,项目名称:URI2,代码行数:94,代码来源:Branddetail.aspx.cs


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