carlos's blog

Regular expression validate name asp.net using RegularExpressionValidator

this will allow names like: Jon Doe ---- Jørn ---- Mc'Neelan match names and dis-allow any attempts to send evil characters. In particular, it tries to allow non-english names by allowing unicode characters. [code]^([ \u00c0-\u01ffa-zA-Z'])+$[/code] example of use: ErrorMessage="invalid name" ControlToValidate="txtLName" Display="None" ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$">

How to populate DropDownList ASP .net with EntitySpaces in code behind

this is how to populate a dropdown ASP.net 3.5 control with entity spaces in code behind c#: (Item is tha name of my entity) ItemCollection i = new ItemCollection(); i.LoadAll(); this.ddlItemType.DataSource = i; this.ddlItemType.DataTextField = ItemMetadata.PropertyNames.Description; this.ddlItemType.DataValueField = ItemMetadata.PropertyNames.ItemTypeID; this.ddlItemType.DataBind(); if you add this after the databind it will add a list item at index zero (pre-selected) ListItem li = new ListItem("select one ", ""); this.ddlItemType.Items.Insert(0,li);

How to Use Page Methods with visual Studio 2008

to Use PageMethods for Vs 2005 with visual studion 2008 pageMethods website: http://metasapiens.com/PageMethods/ all you need to do is apply this registry entry after installing Page Methods for 2005.

cheap 300 blue-ray movie

C# string comma separated to integer array

this C# function will convert an comma separated string in to an array of integers private int[] commaStrToArray(string strIntComma) { string [] strArray; strArray = strIntComma.Split(new char[] {','}); int [] intArray = new int [strArray.Length]; for (int i = 0; i < strArray.Length; i++) intArray[i] = int.Parse(strArray[i]); return intArray; }

Cpanel mysql5 and php5 how to

I updated today to mysql5 and php5 .. and I ran into one problem.... the sql server would not start after installing I was getting: [code]Starting MySQLCouldn't find MySQL manager or server [FAILED][/code] ..... 1st! how to install mysql5 and php5 with cpanel (with out having cpanel downgrade you automatically) (read below)

Relative Script MasterPage Location on ASP .Net 2.0

Adding a referece of Javascript files in Master Pages is a pain. Because the location of Javascript can be in directory, you can simply write this: This will NOT work as when you deploy your site, it would depend on the directory structure. Another problem is you also can NOT do the following: ' /> because Master Page won't allow any server-side tags. The ultimate solution to this I found, is, as follows:

Ipod cable for car RCA

The new Nyko Stereo Link for iPod ... Normally using the iPod dock connection is the only way to get good quality sound from the iPod into a stereo. This is the only adaptor I found that uses this port instead of the headphone jack. Can be found real check at:

Clear Recent Projects on Visual Studio 2005 on start page

I hate having to see the list of old projects on the Start page of visual studio 2005 every time that it starts.... so I found out that these entries are stored in registry (yeah that is F*up) [code]HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList[/code] so I just deleted the entries that I didn't want to see again in that place....

Posting to Blogs using Firefox (msn spaces)

I'm using performancing for firefox (http://performancing.com/firefox) Here are some how to publish to msn spaces [url=http://spaces.msn.com/members/ket000/Blog/cns!1pm_peVcRrtQtZAc4WaU3FBA!278.entry]setting performancing and msn[/url] [url=http://spaces.msn.com/members/carnage4life/Blog/cns!1piiOwAp2SJRIfUfD95CnRLw!1046.entry]setting publish via email[/url]
Syndicate content