ASPNetFAQ.com: What is ASP.NET?

Technology posts on ASP.NET, IIS, Windows (+ a little Linux), Cloud Servers, Hosting, and more!
  • Blog Home
Search the site...

Razor (Webmatrix) Simple Twitter Feed Example

Tweet
Share
0 Shares

Here’s a super-simple Razor code sample to demonstrate putting a Twitter feed on a page:

<!DOCTYPE html>
 <head>
  <title>Twitter Feed</title>
 </head>
 <body>
 <h1>Twitter Feed</h1>
        <form action=”” method=”POST”>
            <div>
                Enter the name of a Twitter feed to display:
                &nbsp;
                <input type=”text” name=”TwitterFeedName” value=””/>
                &nbsp;
                <input type=”submit” value=”Submit” />
            </div>
            <div>
                @if (!Request[“TwitterFeedName”].IsEmpty())
                    {@Twitter.Profile(Request[“TwitterFeedName”])}            
            </div>
        </form>
 </body>
</html>

By the way, if you want some free hosting space to test Webmatrix features, check out Cytanium.com

More from my site

  • Video: DevExpress ASP.NET Controls: Building a Real-world Web ApplicationVideo: DevExpress ASP.NET Controls: Building a Real-world Web Application
  • Layered Architecture Sample for.NETLayered Architecture Sample for.NET
  • Creating AD users in bulk with PowerShellCreating AD users in bulk with PowerShell
  • URL Scan or Request Filtering in IIS7URL Scan or Request Filtering in IIS7
  • Installing the Microsoft IIS SMTP Service on Windows Server 2008Installing the Microsoft IIS SMTP Service on Windows Server 2008
Tweet
Share
0 Shares

Comments are closed.

Proverbs 19:20

"Get all the advice and instruction you can, so you will be wise the rest of your life."

A Note On WordPress Hosting

Our main focus is of course .NET, but with a mix of Linux, virtualization, and other technologies. But if you're really looking for the best WordPress hosting specifically, read my WordPress host review to save yourself hassle AND money!




Recent Posts

  • What makes good web hosting?
  • jQuery Mobile C# ASP.NET and N5 Networks Software Repository
  • Open Source Bug Tracking Software and the Orchard Project
  • ASP.NET Development with Dreamweaver MX: Visual QuickPro Guide
  • Kendo UI Sample, ASP.NET Ajax Tutorial & More

Tags

.NET ASP.NET Automation blog centos cloud CMS css cytanium Development/Coding Email gmail Hosting htaccess IIS javascript Learning Linux logparser MVC MySQL Orchard OrcsWeb performance PHP PowerShell redirect RHEL security server SherWeb smtp SQL/Databases System Administration tip Troubleshooting Ubuntu virtualization Visual Studio web farm web hosting WebMatrix Windows windows server Wordpress

Categories

  • ASP.net development
  • Development/Coding
  • Hosting
  • IIS (Internet Information Services)
  • SQL/Databases
  • System Administration
  • Virtualization
(c) ASPNETFAQ.com