Home / ASP.NET Weblogs

January 2010 - Posts

Posted to:
by: 
01-10-2010, 11:57 PM

ASP.NET MVC 2: Strongly Typed Html Helpers

[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] This is the first in a series of blog posts I’m doing on the upcoming ASP.NET MVC 2 release.  This blog post covers the new strongly-typed HTML helpers added with ASP.NET MVC 2. Existing HTML Helper Methods ASP.NET MVC 1 shipped with a set of HTML helper methods that can be used within view templates to help with the generation of HTML UI.  For example, to output a textbox you could write code (within your .aspx view template) using the Html.TextBox() helper method below: The first parameter to the helper method above supplies the name/id for the textbox, and the second parameter specifies the value it should...
Posted to:
by: 
01-10-2010, 11:54 PM

ASP.NET MVC 2

[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] Over the last six months the ASP.NET team has been steadily releasing preview, then beta, and now release candidate builds of ASP.NET MVC 2. Given that the final release is not too far away, I thought it was a good time to start a new multi-part ASP.NET MVC 2 blog series that discusses the new features and how best to take advantage of them. ASP.NET MVC 2 We shipped ASP.NET MVC 1.0 last March.  Since then, almost 1 million developers have downloaded and used the final release, and its popularity has steadily grown month over month. ASP.NET MVC 2 is the next significant update of ASP.NET MVC. It is a compatible...
Posted to:

Hanselminutes Podcast 192: The Spark View Engine for ASP.NET MVC with Louis DeJardin

My one-hundred-and-ninety-second podcast is up . Scott chats with new Microsoft employee and ASP.NET team member about his open source ASP.NET MVC ViewEngine called "Spark." It's a totally new DSL (Domain Specific Language) that might make your MVC Views more fun to write! What is Spark? Spark is a view engine for Asp.Net Mvc and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and the code to fit seamlessly. <viewdata products="IEnumerable[[Product]]"/> <ul if="products.Any()"> <li each="var p in products">${p.Name}</li> </ul> <else> <p>No products available</p> </else> Subscribe: Download: MP3 Full Show Links...
Filed under: , ,
Posted to:

How SparkFun (and 800.com) and small commerce or startup websites can scale

Somewhere in late 1997, early 1998 (as I recall) I was working at a place called 800.com. Me and three guys (Joe Tillotson, Javan Smith and Patrick Cauldwell) from our consulting firm were helping create the storefront, shopping cart and business systems. We did it all in COM and Classic ASP. I did most of the friend end ASP, HTML, cut graphics, did scale, browser compat, the whole thing. Javan ended up working there full time for some years as I recall. It was deep in the beginning of the first boom. We were sleeping with our servers. The place had no offices yet, and we were sitting on the stairs of the Tyee Group in Portland. March 1, 2002 800.com sold to Circuit City and disappeared . I still say they could have been like Amazon, but it...
Filed under: ,
Posted to:
by: 
01-07-2010, 11:38 AM

Updated Web Community Application

I’ve posted the first set of minor updates to my new Web Community Application Project at www.MMARingside.org Updates include…. Migrated to ASP.NET 4Beta. Add Daily News Updated and Downloads Page. Add Membership & Rolls with SQL Express. Add Global Properties like Site Name, Slogan. Refractor Controls and MasterPage. Note that the code for each update is downloadable. Disclaimer: Use this code at your own risk. I, and Microsoft, make absolutely NO expressed or implied warranty what so ever. This sample code is provided for your enjoyment, it is not supported and it is not official Microsoft “best practice”. I offer it only for any learning value you may derive from it. You can find a link to the updates page on the top menu at www.MMARingside...
Posted to:
by: 
01-06-2010, 10:23 AM

Help me decide what to focus on for thenext 6 months.

Please take this poll ! Read More...
Filed under:
Posted to:
by: 
01-05-2010, 10:49 AM

Building an Awesome Community Web Site

Some time ago I started playing with the idea of organizing an Open Source project to build a CMS. It generated a lot of interest, but the “expectations” seemed overwhelming to me. NETOOP is not dead, I still plan to build it but I intend to build version one myself (On MVC) and release it as FREE source. In the mean time, I’m planning what content to build for 2010 and have decided to do a collection of projects based on building a great community site. I’m going to write the code and record videos detailing the implementation or the parts. I hope YOU will suggest and discuss features with me here on my blog! I will release the code as FREE/MSPL at different milestones. The “design” that I’m starting with is live at www.MMARingside.org It’s...
Posted to:
by: 
01-05-2010, 4:08 AM

ASP.NET 4 SEO Improvements (VS 2010 and .NET 4.0 Series)

[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] This is the thirteenth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  Today’s post covers some of the improvements being made around Search Engine Optimization (SEO) with ASP.NET 4. Why SEO? Search engine optimization (SEO) is important for any publically facing web-site.  A large percentage of traffic to sites now comes from search engines, and improving the search relevancy of your site will lead to more user traffic to your site from search engine queries (which can directly or indirectly increase the revenue you make through your site). Measuring the SEO of your website...
Filed under: , ,
Posted to:
by: 
01-05-2010, 12:08 AM

Resolving the &ldquo;TCP error code 10060: A connection attempt failed&hellip;&rdquo; while consuming a web service

Recently, one of the queries I had was on “TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond” while consuming a web service over proxy settings. Setting the UseDefaultWebProxy to true didn’t help with this error. I had earlier written a post on explicitly setting the proxy in the configuration file for Web Services. The scenario here though was, a WCF Service Client trying to consume the web service. However, the same work around proved helpful. After setting the proxy explicitly, the web service could be consumed by the WCF Client. The proxy setting that you want to add to the config file...
Posted to:

T4MVC 2.6.10: fluent route value API, shorter way to refer to action, and more

To get the latest build of T4MVC: Go to T4MVC page on CodePlex   I just posted build 2.6.10.  There were also a few builds in between since I last blogged about 2.6, so this post describes some of those changes (full history here ).   Fluent route value API As you probably know, T4MVC uses a pattern where the route values are encapsulated using a pseudo-call to a controller action, e.g. Html.ActionLink("Delete Dinner", MVC.Dinners.Delete(Model.DinnerID)) This adds the controller, the action and the method parameters to the route values in a convenient way with no hard coded strings. But in some situation, you may need to add extra values to the route that don’t exist in the action method.  Now you can do it as follows...
Filed under: , ,

< Previous 1 2 3 4 5 Next >

Archives