本文整理汇总了C#中Common.SavePhoto方法的典型用法代码示例。如果您正苦于以下问题:C# Common.SavePhoto方法的具体用法?C# Common.SavePhoto怎么用?C# Common.SavePhoto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common
的用法示例。
在下文中一共展示了Common.SavePhoto方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
Common objCommon = new Common();
objCommon.SavePhoto(FileUpload1, "Images", b.BrandID, 2);
}
示例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;
Common objCommon = new Common();
objCommon.SavePhoto(FileUpload1, "Images", b.BrandID, 2);
}