Geeks With Blogs
Dheeman Dutta Just Another Blog..... November 2006 Entries
Create Your Own Validator
I had to validate the login page of my app. It had only two textbox es (UserId,Password) and a login button on the page. There are quite a few validations I can think ofand some of them were duplicate for both boxes , whereas some validations include both boxes in their critera.I started think as to which controls I can drop to do the work fast.I decided to to use the combination of RequiredFiedValidator,Custo... and VaidationSummary. There cam a few problems ** I could not use javascript ......

Posted On Thursday, November 23, 2006 6:19 AM

Anonymous Methods and delegates
This topic is quite a common topic on the net after c# 2.0 has been released. ( quite a fews months before) . With the introduction of c# 2.0 came in the concept of Anonymous methods and Anonymous delegates. Delegates , previously needed o have named methods to point to. With this new introduction , adds another flexibilty.... The code snippet below shows both ways ( the named method and the anonymous way) class Program { delegate void TestAnonDelegate(string foo); static void Main(string[] args) ......

Posted On Thursday, November 16, 2006 5:24 AM

DB Creation
I was thinking about how to use osql ( the command line utility of SqlServer) to install a DB with initial values (from an existing DB) and do it without opening the SQlServer Management Studio (bcoz quite often wee need to provide a packaged intalltion along with data) . I found out that it was a prettty nice idea to attach the data files of the DB(.ldf and .mdf) and create the new DB... The foll. does that for you.. set useDatabase="USE MASTER" set createdbstmt="CREATE DATABASE %4 ON PRIMARY(NAME=N'%4',FILENAME... ......

Posted On Thursday, November 2, 2006 9:06 AM

Copyright © Dheeman Dutta | Powered by: GeeksWithBlogs.net