Custorm Control For regular expression
-
Hi I need your help..i am in a problem like In my webpage i have 2 textbox...initially both will have to show..user has to enter value any one of these 2 textbox and has some regular expression validation is also there.. eg..one textbox is for bank a/c and another is for someother bank a/c no each one has it's on regular expression validation ..user has to fill either one of these textboxes..for that i have to create a custom validation control..because i am a beginer in asp.net..so can anybody help me to make custom control for this problem....for that i can reuse it again in my project.. regards alex.
-
Hi I need your help..i am in a problem like In my webpage i have 2 textbox...initially both will have to show..user has to enter value any one of these 2 textbox and has some regular expression validation is also there.. eg..one textbox is for bank a/c and another is for someother bank a/c no each one has it's on regular expression validation ..user has to fill either one of these textboxes..for that i have to create a custom validation control..because i am a beginer in asp.net..so can anybody help me to make custom control for this problem....for that i can reuse it again in my project.. regards alex.
Dear, Your need is simple put a custome valid ctrl in web page, under this control { if((TextBox1.Text=="")&&(TextBox2.Text=="")) //display error message //set a flag variable } But the dear...These validations are pure when u publish the site in web if u know, try with javascript