This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public GooglePlusOne() | |
{ | |
InitializeSettings(); | |
Post.Serving += ServingHandler; | |
Page.Serving += ServingHandler; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ServingHandler(object sender, ServingEventArgs e) | |
{ | |
if (!ExtensionManager.ExtensionEnabled(ExtensionName)) return; | |
if (e.Location == ServingLocation.Feed) return; | |
HttpContext context = HttpContext.Current; | |
if (context != null) | |
{ | |
System.Web.UI.Page page = context.CurrentHandler as System.Web.UI.Page; | |
if (page != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void ScriptInject(System.Web.UI.Page page) | |
{ | |
HtmlGenericControl googleScript = new HtmlGenericControl("script"); | |
googleScript.Attributes["type"] = "text/javascript"; | |
googleScript.Attributes["src"] = "https://apis.google.com/js/plusone.js"; | |
page.Header.Controls.Add(googleScript); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string MiddleName { get; set; } | |
public string LastName { get; set; } | |
public string FullName | |
{ | |
get | |
{ | |
return string.Format("{0} {1}{2}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DebuggerDisplay("FirstName={FirstName} LastName={LastName}")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DebuggerDisplay("FirstName={FirstName} LastName={LastName}")] | |
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string MiddleName { get; set; } | |
public string LastName { get; set; } | |
public string FullName | |
{ | |
get | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul data-role="listview" data-inset="true" data-theme="d" data-filter="true"> | |
<li data-role="list-divider">2/25/2012<span id="EventCount_0" class="ui-li-count">1</span></li> | |
<li> | |
<a href="/m/e.aspx?Id=45"> | |
<h3><span>Northwest Harvest at MVP Summit 2012</span></h3> | |
<p><strong><span>Northwest Harvest Warehouse</span></strong></p> | |
<p class="ui-li-aside"><span>from 11:30 AM to 5:00 PM</span></p> | |
</a> | |
</li> | |
<li data-role="list-divider">2/27/2012<span class="ui-li-count">2</span></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul data-role="listview" data-inset="true" data-theme="b" data-filter="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<a href="/m/e.aspx?Id=45"> | |
<h3><span>Northwest Harvest at MVP Summit 2012</span></h3> | |
<p><strong><span>Northwest Harvest Warehouse</span></strong></p> | |
<p class="ui-li-aside"><span>from 11:30 AM to 5:00 PM</span></p> | |
</a> | |
</li> |