C# .NET - How to validate phone no( ex; (123) 456-7890) in .Net?
Asked By Eswaran Radhakrishnan
29-Sep-08 04:01 AM
Hi all,
I need to validate thd Phone no format is "(123) 123-5678" length should be 14. I need to validate in .net windows application.
How to validate this in .net windows application?
Thanks
R. Eswaran.
CREATE TABLE [T_SPACEUSEAGREEMENT] ( [spec_id] [numeric](20, 0) NOT NULL , [Sys_projectid] [numeric](20, 0) NULL , [Sys_objectstate] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [Sys_objectId] [numeric](20, 0) NULL , [Sys_guiid] [numeric](20, 0) NULL , [Sys_ReviewStatus] [varchar] (1000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [Sys_PriorState] [varchar] (1000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_Security] [numeric](32, 12) NULL , [ce_Security_UOM varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_PropertyTaxes] [numeric](32, 12) NULL , [ce_PropertyTaxes_UOM] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_Insurance] [numeric](32, 12) NULL , [ce_Insurance_UOM] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_Electricity] [numeric](32, 12) NULL , [ce_Electricity_UOM] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_UtilitiesBase] [numeric](32, 12) NULL , [ce_UtilitiesBase_UOM] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL , [ce_SecurityBase] [numeric](32, 12) NULL , [ce_SecurityBase_UOM] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
Interface and Abstract Class Hai, When do we go for Interface. . When do we go for Abstract Class. . .Give one example Today i faced one interview . . He asked this question.I want answer with Example Thanks in Advance Abstract Class :: - It cannot defines all the methods - It has subclass. - Here, Subclass is useless - A class can be extend an abstract class Interface :: - It defines all the methods - It must have implementations by other classes, But there http: / / kyapoocha.com / c-sharp-interview-questions / what%E2%80%99s-the-difference-between-an-interface-and-abstract-class-5 / http: / / www.dotnetuncle.com / Difference / 4_abstract_class_interface.aspx Hope this helps. HI An interface contains signatures of methods , delegates or events . The implementation of the methods is done in the class that implements the interface, as shown in the following example: interface ISampleInterface { void SampleMethod(); } class ImplementationClass : ISampleInterface { / / Explicit interface member implementation: void ISampleInterface.SampleMethod() { / / Method implementation. } static void Main() { / / Declare
attribute like Summary, Keyword, Title, Author. . .etc. . . . without storing on the server. . . . Thanks, Arth <pre class = "csharpcode" > <pre <span class = "kwrd" > class < / span> = <span class = "str" > "csharpcode" < / span> >&lt;pre <span <span class = "kwrd" > class < / span> = <span class = "str" > "kwrd" < / span> ><span class = "kwrd" > class < / span> < / span> = <span <span class = "kwrd" > class < / span> = <span class