So compiler promptly told me hey i can’t find the object. Because – take a close look at the using directive sections.
Now coming back to my problem – why isn't Regex recognised as object. Same as what you would expect in ASP.NET page. Check the code below:ġ: // Validate the user's email address 2: if (email.IsEmpty()) 3: Line 75: var pattern = “” Line 76: var regEx = new Regex(pattern) Īs you can see this is nothing new.
#Using microsoft webmatrix for website registration#
In the registration page processing – the code was checking only if the email field was empty or not.
#Using microsoft webmatrix for website full#
As i said there is a example site bundled with WebMatrix known as “StarterSite” which by the way is an excellent code example of a full fledged site with security around it. I was working on user creation module and as any user registration has, i too have an email field. So in the course of building this site i started looking at different aspects of the WebMatrix. Will spill more beans may be in one of the coming blogs. No this was not a example site – rather – i am trying to build something for the community. I started to play around with WebMatrix by creating a site of my own. Now, as they say – “Necessity is the mother of invention” – i am going to talk about an aspect till now nobody has blogged about (as far as i know). These examples have all the code you need to just copy & paste and finish up a site. Not only that it has some cool starter example sites – namely – Bakery, Photo album etc. Must say its so light weight but keeps you the full power to build great looking sites in just couple of hours. So i too jumped into the band wagon of users who started to check out the new tool. WebMatrix is a lightweight web development tool that integrates 3 new web development technology such as: So on July 6 Scott blogged about a new tool that was released which is known as “WebMatrix”. I like to address him as “His Highness Gu” after going through Scott Hanselmans’ (Principal Program Manager, MS) this video. On July 6, “His Highness Gu” – well wondering who is this – none other than Scott Guthrie of Microsoft.