Se afișează postările cu eticheta C#. Afișați toate postările
Se afișează postările cu eticheta C#. Afișați toate postările

sâmbătă, 15 noiembrie 2008

PDC 2008 - Apps for babies in .Net 4.0

My personal Software engineer model, Mr. Scott Hanselman, had a very nice presentation at PDC 2008.

He explained the usage of Microsoft’s .Net 4.0 framework in real life examples, creating an interesting environment for very young people (less than 4 years) using Silverlight, PDAs, the new Surface device, webservices, real time interrogation to data bases by auto updating reports and others.

http://channel9.msdn.com/pdc2008/TL49/

Entry Media

Join Scott Hanselman for this lots-of-code-minimal slides talk that walks through the sheer joy of building out a .NET Framework application with Visual Studio using many of the new advances in the .NET Framework 3.5SP1 and 4.0. We have a data layer with Entity Framework, use REST web services with WCF and ADO.NET Data Services, write an ASP.NET site for reporting using Dynamic Data and MVC. All the data will come from a WPF client application and a Silverlight application that the audience will run live! All this, plus it's an application that babies and toddlers will love!

Enjoy!

joi, 5 iulie 2007

ASP .Net Page.Header with custom meta tags

One of this days a friend of mine shared with me some SEO techniques and one of them was to change the meta tags associated with a product page. So after a little research I found out a way to accomplish this : modify the Header property of ASP .Net page and add several HtmlMeta tags who can hold the data needed to be changed. Each ASP .Net page has a property called Header who is the “hidden” header code of each HTML page. It is available starting with .Net version 2.0 and exposes also the meta tags object collection. Actually, all elements in the header are available in Header.Controls

// Render: <meta name="keywords" content="pharmacy, online pharmacy, home delivery" />
HtmlMeta meta1 = new HtmlMeta();
meta1.Name = "keywords";
meta1.Content = "pharmacy, online pharmacy, home delivery";

// Render: <meta name="verify-v1" content="DmMArCJQq9KV45wvKMwrWASh3R8UWTd7NfBD" />

HtmlMeta meta2 = new HtmlMeta();
meta.Name = "verify-v1";
meta.Content = "DmMArCJQq9KV45wvKMwrWASh3R8UWTd7NfBD";

// Render: <meta name="revisit-after" content="2 days" />

HtmlMeta meta3 = new HtmlMeta();
meta.Name = "revisit-after";
meta.Content = "2 days";

Header.Controls.Add(meta1);
Header.Controls.Add(meta2);
Header.Controls.Add(meta3);