Justin Cooney

Web Development Tips and Examples

  • RadioButtonList in ASP.NET
    RadioButtonList in ASP.NET

    The RadioButtonList control is situationally useful. Although I don’t find myself using it often, when I do need it, I have to look up the basic functionality and how to apply it. This has led me to write this article as a guide and a code-reference.

    Set up the WebForm

    For starters, drag and drop a DataSource onto your Web form. In my case I will use a SQLDataSource and I will populate its Select, Update, and Delete commands with stored procedures I have created. My goal is to create a  RadioButtonList  that lists saved default searches for a user and to add a LinkButton control to use as a general delete button.

    The following snippet illustrates adding the SQLDataSource:

    (more…)

  • The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

    Here’s an excerpt:

    A San Francisco cable car holds 60 people. This blog was viewed about 2,400 times in 2011. If it were a cable car, it would take about 40 trips to carry that many people.

    Click here to see the complete report.

  • I’ve been looking into the Yahoo Query Language (YQL) specification available on the Yahoo Developer Network (YDN). The scope of the functionality exposed is quite impressive and I would certainly suggest checking this out to anyone serious about Web-based programming.

    What is YQL?

    Yahoo has allied itself with a number of websites and online services, and provides a uniform API to these using YQL. YQL is is a well-documented fourth generation programming language (4GL) with typed syntax that is very close to traditional SQL.

    Through the YQL API Yahoo exposes a standardized way to query and manipulate data from various authenticated Web services including Netflix and Twitter. The method of exposing this information is through what they call Open Data Tables. These Open Data Tables are XML files that describe how YQL can be mapped to a Web Service provided by a third party system (such as Twitter for example).

    YQL and Open Data Tables point to Yahoo’s cloud storage infrastructure called ‘Sherpa’, and Yahoo implements security features for YQL using OAuth 1.0 and Access-Control-Allow-Origins.

    (more…)