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