TwitterFaceBook.aspx
Step:1
Write Below Code in and
Step:2
Create FB Share Button
Step:3
Create Twitter Share Button
data-url="http://www.theved.com/myShareURL.aspx">Tweet
TwitterFaceBook.aspx.cs
Page.Header.Title = "Share me with Facebook and Twitter";
//Descriptions
HtmlMeta htmlDescription = new HtmlMeta();
htmlDescription.Name = "description";
//htmlDescription.Content = strName + " ," + strCompanyName + " ," + strSong;
htmlDescription.Content = "Share me with Facebook and Twitter";
this.Header.Controls.Add(htmlDescription);
HtmlLink link = new HtmlLink();
link.Href = "http://www.theved.com/images/" + strThumbNail;
link.Attributes["rel"] = "image_src";
this.Header.Controls.Add(link);
Enjoy coding
Step:1
Write Below Code in and
Step:2
Create FB Share Button
Step:3
Create Twitter Share Button
data-url="http://www.theved.com/myShareURL.aspx">Tweet
TwitterFaceBook.aspx.cs
Page.Header.Title = "Share me with Facebook and Twitter";
//Descriptions
HtmlMeta htmlDescription = new HtmlMeta();
htmlDescription.Name = "description";
//htmlDescription.Content = strName + " ," + strCompanyName + " ," + strSong;
htmlDescription.Content = "Share me with Facebook and Twitter";
this.Header.Controls.Add(htmlDescription);
HtmlLink link = new HtmlLink();
link.Href = "http://www.theved.com/images/" + strThumbNail;
link.Attributes["rel"] = "image_src";
this.Header.Controls.Add(link);
Enjoy coding
Comments