August 2007 - Posts - Raj Kaimal

August 2007 - Posts

VS TS 2008 Beta 2 - TFS Client & WDP 2008

Note that Visual Studio Team Suite 2008 Beta 2 does not come with the TFS (Team Explorer) 2008 client or Web Deployment Projects.

 To install the TFS 2008 client, download the Visual Studio 2008 Beta 2 Team Foundation Server and do a custom install.

Not sure what the status is on WDP 2008. I think it is so awesome that it should be intergrated into Visual Studio 2008 instead of a seperate download.

Posted by rajbk | with no comments
Filed under: ,

Limiting the length of a multiline textbox

Limiting the length of an ASP.net mulitline textbox control is easy. Add a RegularExpressionValidator, set the ControlToValidateProperty to the ID of the TextBox you wish to validate and set the ValidationExpression property to :

^[\s\S]{0,300}$

This tells the regex validator to limit the number of characters in the Textbox to 300.

Metacharacters

^ Start of Line
[] Character class (list the characters you want to match)
\s White space characters including new line
\S Non-white space characters
{intMin,intMax} Intervals; The minimium number of matches you want to require and the max number of matches you want to allow

 

Posted by rajbk | 4 comment(s)
Filed under:
More Posts