14. Many available Helpers ...
• Security:
– WebSite membership
– Recaptcha support
preventing automated programs
from registering with your website
• Video support(Silverlight, Flash, MediaPlayer)
• Image elaboration (thumbnail image, uploading image,…)
• Bing: embed bing search box into your website
• Chart: renders more than 30 types of charts
• Social Networking
– Linking your Website on Social Networking Sites
– Adding a Twitter Feed
– Rendering a Gravatar Image
– Displaying a Facebook “Like” Button
• PayPal
• And more….
15. Installing ASP.NET Helpers
• Run a page in your site
• In the browser’s URL box, replace the name of the page
with _Admin (first time you are required to create a pw)
http://localhost:8080/_Admin
16. Creating custom helpers
• In the root folder of the web site, create a folder
named App_Code
• In the App_Code folder create a new .cshtml file called
MyHelpers.cshtml.
• Replace the content with
@helperMakeNote(stringcontent) {
<div class="note" style="border: 1px solid black; width: 90%; padding:
5px; margin-left: 15px;">
<p>
<strong>Note</strong> @content
</p>
</div>
}
• Use the helper: @MyHelpers. MakeNote("Mytestnotecontent")
17.
18. More info...
• Download WebMatrix (available in 9 languages)
http://www.microsoft.com/web/webmatrix/download
• WebMatrix tutorial available www.asp.net/webmatrix/tutorials
• 1 Year Free* Hosting www.academiczone.ch
*Special terms of use apply