2
Answers

Regular Expression For Phonenumber

Photo of karthik parcha

karthik parcha

13y
1.4k
1
HI
In my webpage i have one TextBox Control.
In that textbox when i enter any three digits automatically i have to display an hyphen ("-") after the three digits
E.G:333-333-333-333-333
HOw to write code in Javascript
please help me
Thanks
karthik

Answers (2)

0
Photo of Dipen Lama
NA 331 195.9k 18y
Use Place holder control to place the user control dynamically.
Here is some lines:

    string userControlName = "UserControl1.ascx"; 
 
    Control control1 ;
    control1 = LoadControl( userControlName );
    placeHolderControl1.Controls.Clear();
    placeHolderControl1.Controls.Add( control1 );