Problem in Validation Control
-
Hello Friends, I am using Asp.net 2.0 with C#. I have Three textbox ..,txtname,txtAddress,txtphno,and each textbox has Requiredfield Validator.I am inserting Record and show record throuh 2 button ie. Save and ShowRecord button My problem is when i want show record through Textname textbox putting name(bind through DataReader) and click on show record then the message comes that other two textbox means txtaddress,txtphon can not blank which i have given in error message. When i remove validation control then record will be shown in textboxes. Plz give me some Idea. parameswar mal
-
Hello Friends, I am using Asp.net 2.0 with C#. I have Three textbox ..,txtname,txtAddress,txtphno,and each textbox has Requiredfield Validator.I am inserting Record and show record throuh 2 button ie. Save and ShowRecord button My problem is when i want show record through Textname textbox putting name(bind through DataReader) and click on show record then the message comes that other two textbox means txtaddress,txtphon can not blank which i have given in error message. When i remove validation control then record will be shown in textboxes. Plz give me some Idea. parameswar mal
1. I think, you can group the validators in ASP.NET 2.0. I haven't tried using it but read somewhere that it does. so, you probably can try.. OR 2. You can use the custom validators with client-side validation OR 3. Use Javascript-validation or Server-side validation..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)