2010's Most Popular Articles Introduction I ended last year with a "Best Of" article - see 2009's Most Popular Articles - and decided to continue this tradition. Such "Best Of" articles give both regular and new readers a chance to discover (or rediscover) the most favored content from the year. So here it is - a list and synopsis of the 2010's most popular articles on 4GuysFromRolla.com. URL Routing in ASP.NET 4 For example, using ASP.NET Routing you can define a routing rule that maps all incoming URLs of the form ASP.NET Routing is a cornerstone of ASP.NET MVC, but can also be used in ASP.NET Web Forms applications. Using Microsoft's Chart Controls In An ASP.NET Application Using Microsoft's Chart Controls In An ASP.NET Application is a multi-part article series I started in July 2009 that looks adding charts to an ASP.NET application using the free Microsoft Chart Controls. Currently there are 11 installments, the last three added at various points during 2010:
Read More >
Cascading Style Sheets, or CSS, is a syntax used to describe the look and feel of the elements in a web page. CSS allows a web developer to separate the document content - the HTML, text, and images - from the presentation of that content, which makes the markup in a page easier to read, understand, and update; it can result in reduced bandwidth as the style information can be specified in a separate file and cached by the browser; and makes site-wide changes easier to apply. Unfortunately, certain aspects of CSS's syntax leave a bit to be desired. Many style sheets include repeated styling information because CSS does not allow the use of variables. Such repetition makes the resulting style sheet lengthier and harder to read; it results in more rules that need to be changed when the website is redesigned to use a new primary color. Specifying inherited CSS rules, such as indicating that a elements (i.e., hyperlinks) in h1 elements should not be underlined, requires creating a single selector name, like h1 a . Ideally, CSS would allow for nested rules, enabling you to define the a rules directly within the h1 rules. .LESS is a free, open-source library that allows ASP.NET developers to create style sheets using new and improved language features, including variables, operations, mixins, and nested rules. Behind the scenes, .LESS converts the enhanced CSS rules into standard CSS rules. This conversion can happen automatically and on-demand through the use of an HTTP Handler, or done manually as part of the build process. Moreover, .LESS can be configured to automatically minify the resulting CSS, saving bandwidth and making the end user's experience a snappier one. Accessing Server-Side Data From Client Script While this approach certainly works and has its advantages, it's not without its drawbacks. The primary concern with postback forms is that they require a large amount of information to be exchanged between the browser and the server. Specifically, the browser sends back all of its form fields (including hidden ones, like view state, which may be quite large) and then the server sends back the entire contents of the web page. Granted, there are scenarios where this large quantity of data needs to be exchanged, but in many cases we can use techniques that exchange much less information. However, these techniques necessitate spending more time and effort thinking about how and when to have the browser communicate with the server and intelligently deciding on what information needs to be exchanged. To address these challenges, I started a multi-part article series in October 2010 on different ways to access server-side data from the browser via client script. To date I've authored three installments in this series:
Read More > Building a Store Locator ASP.NET Application Using Google Maps API Like most store locators you'd find online, the application presented in this article prompts the user for an address (or city or ZIP code) and then displays a map and grid showing nearby store locations. Behind the scenes, the store locations and their latitude and longitude coordinates are stored in a database. When a user enters an address, the Google Maps API is used to translate that address into a latitude/longitude coordinate, which is then used in a database query to find stores within (roughly) a 15 mile area. The Google Maps API is used again to display a map of the address entered by the user along with pushpins showing the nearby store locations. In August I wrote another two part article series that looked at implementing the store locator application in ASP.NET MVC - see Implementing the Store Locator Application Using ASP.NET MVC for more details. Conclusion Happy Programming and Happy New Year!
|
You are subscribed to an Internet.com newsletter as oomsatya1.digitalnewsportal@blogger.com. To unsubscribe from this newsletter, please click here.
If you wish to be removed from all future Internet.com emails, please click here.
To unsubscribe via postal mail, please contact us at:
Internet.com
Attn: Newsletter Subscription Dept.
307 5th Ave., 14th Floor
New York, NY 10016
Please include the email address which you have been contacted with.