May 162012
 

Problem

  • ASP.NET 4.0 Web Forms
  • I want to use HTML5 number input textbox
  • I’m targetting html5 modern browser, e.g. Chrome, Apple Safari

Solution

With the latest NET 4.0 update, you can override input type of asp:Textbox to any html5 type. You can use type number by adding type=”number” to asp:Textbox.

<asp:TextBox ID="TextBox1" runat="server"
  placeholder="number"
  type="number"></asp:TextBox>

It will be rendered with spinboxes as shown below in Chrome and Safari. You can check “Can I Use” for list of browsers that support input type=number.

Number Input in Chrome

Number Input in Chrome

Number Input in Safari

Number Input in Safari

Notes
This only works after you install Update for the .NET Framework 4. And your project target framework must be NET 4.0 and above.

Feature 3
New syntax lets you define a TextBox control that is HTML5 compatible. For example, the following code defines a TextBox control that is HTML5 compatible:

<asp:textbox runat="server" type="some-HTML5-type" />
May 152012
 

Problem

I’m still fond of ASP.NET Web Forms, and I was wondering how to implement html5 placeholder for input textbox with ASP.NET 4.0 Web Forms.

Solution

To add html5 placeholder to input textbox in ASP.NET, you only need to add attribute placeholder to asp:Textbox tag. As simple as that!

<asp:TextBox ID="placeholderTextBox" runat="server"
  placeholder="html5 placeholder"></asp:TextBox>

I didn’t verify this, but I guess you will have to install “Web Standards Update for Microsoft Visual Studio 2010 SP1” first.

Input textbox with placeholder as seen in Google Chrome 18 (May 2012).

placeholder in Google chrome

When you run it Mozilla Firefox 12.

placeholder in Firefox

Dec 012010
 

Finally Microsoft officially released offline installer for Windows Phone 7 Developer Tools.

Download: http://go.microsoft.com/fwlink/?LinkId=201927

Since it does not include October update, you have to download it separately.

Update:
January 2011 Update is already released.

References:

Sep 172010
 

It’s been a while since initial release of Windows Phone 7 Developer Tools and finally developers rejoiced.. Final Developer Tools is here for public consumption.

There will be many other blogs that will post about this final release. I will be brief and list some useful references.

Jul 132010
 

Microsoft’s Windows Phone team finally released a beta version of its popular developer tools. You can grab the latest installer from Microsoft Download.

There are lot of major changes to framework, library, control templates, etc. The coolest addition is the inclusion of Expression Blend 4 for Windows Phone Beta.

Make sure you read What’s New in Windows Phone Developer Tools Beta after or before downloading the Beta, as your current CTP project might break. There are short tips for migrating current CTP project to Beta.

The following guidance applies only to applications created using Windows Phone Developer Tools CTP Refresh (April 2010). If you created your application using the Windows Phone Developer Tools CTP (March 2010), do not use your previous project; instead, create a new one.

  1. Create a new project.
  2. Copy your own code from app.xaml, but leave out any template code.
  3. Do this for each page.
  4. Bring in libraries as-is.
  5. Fix build breaks.

For more details and thorough guide, read Jaime Rodriguez’s blog post on migration.

References:

Jul 042010
 

URLs affected:

It happened on 2010-07-04, 00:30 (GMT+8).
And it’s been rectified quickly by Google. As of now, SSL certificate for Google Docs has been replaced with a generic SSL for domain: *.google.com

Google Docs SSL Certificate Error - Chrome

Google Docs SSL Certificate Error - Chrome

Google Docs SSL Certificate Error - Firefox

Google Docs SSL Certificate Error - Firefox

May 032010
 

I decided to make an installation ISO as this definitely could help for repairing corrupted installation, sharing with friends, or installation in office/college (screw firewall, proxy, etc). I believe Microsoft will only release Offline Installation for Windows Phone Developer Tools only for Final Release.

I do not have chance to do test installation in many system – slow installation, bla bla bla. It doesn’t allow me to install in Windows Vista without SP1 installed and I have no access to any 64-bit system. Hence I only tested on the following box:

  • Operating System: Windows 7
  • Platform: x86
  • No prior installation of: Visual Studio 2010 RTM; Visual Studio 2010 Express; Windows Phone Developer Tools CTP March; ( I installed Visual Studio 2010 RTM after installing this, and both works fine )

Web installer can be downloaded from Microsoft Download – Windows Phone Developer Tools CTP (April Refresh). Scroll down for offline installation ISO image.
Few details that we already know. It’s an April Refresh release – which fixes compatibility issue with Visual Studio 2010 RTM.

Visual Studio 2010 - New Project Dialog for Windows Phone

Visual Studio 2010 - New Project Dialog for Windows Phone

Quick Details
Version: 1.0
Date Published: 4/29/2010
Language: English

Continue reading »

Apr 122010
 

Today 12 April 2010, is another big day for Microsoft. It’s official launch date of Visual Studio 2010. Curiously I went to its official site. I was surprised to see the site title wrote “Microsoft Visual Studio 2010 – The Offical Site of Visual Studio 2010″. Come on, Microsoft! You’ve got to do better than that. Where is your word-spelling software? Can’t Microsoft Word tell you that it’s wrong ?

Screenshot.

Offical on Visual Studio site

Let’s take a look at the website source code.

Source Code on Offical Site

Strangely, Wikipedia acknowledge Offical.

References: