w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

Add MetaTags Using JavaScript
I dont think you can do that. Javascript is a client-side language so when Facebook reads the og:image meta tag the javascript code hasn't run yet. Hence, Facebook requests the page from the server and it will not be able to find the updated tags. Check the debugger if you need to test this: http://developers.facebook.com/tools/debug EDIT: But if in fact that was gonna work I think you need to escape your tag like: $("meta[property='og\:image']").attr("content", "");

Categories : Asp Net

To change the metatags of PNG Image files
Try this PngReader pngr = FileHelper.CreatePngReader(origFilename); PngWriter pngw = FileHelper.CreatePngWriter(destFilename, pngr.ImgInfo, true); pngw.CopyChunksFirst(pngr, ChunkCopyBehaviour.COPY_ALL); pngw.GetMetadata().SetText(myKey, myText,false,false); // provide your own data for (int row = 0; row < pngr.ImgInfo.Rows; row++) { ImageLine l1 = pngr.ReadRowInt(row); pngw.WriteRow(l1, row); } pngw.CopyChunksLast(pngr, ChunkCopyBehaviour.COPY_ALL); pngw.End(); // dont forget this pngr.End();

Categories : Asp Net

How do I include a video in metatags through my wordpress site?
the_content() is a WordPress core function and is used to echo out the whole HTML of the post, and can only be used inside the loop. What you want in your og:video meta tag instead is your video's URL. If you have defined your own function the_content() then you just need to rename it.

Categories : Wordpress

dynamically create facebook share metatags [og:] in asp.net
For Google+, schema.org microdata is preferred over Open Graph tags. You can decorate any HTML tags with schema.org microdata and can use the Google+ snippet tool to generate example content. In your case, you could just add an itemscope to the HTML tag such as: <html itemscope itemtype="http://schema.org/Article"> <head> <meta itemprop="name" content="Blog title"> <meta itemprop="description" content="A blog post description"> <meta itemprop="image" content="http://example.com/test.jpg"> </head> <body> ... In your case, all you need to do to improve the result for Google+ is add the itemprop tags to your code, for example: case "og:site_name": tag.Name = str; tag.Attributes.Add("itemprop", "name"); tag.Content = "http://www.mysi

Categories : Asp Net

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.