Last post Apr 07, 2008 01:57 PM by Musafiir
Apr 06, 2008 03:27 PM|Musafiir|LINK
Hi Asp.Net community.
Am doing a project on mobile web form whereby it should support a registration. On the form, each of the textboxes, i have assigned a
RequiredFieldValidator. When i click the button Register while a textbox is left blank, the validator appears but the record is saved to database!
Meaning a NULL field is saved. I have used the same code with a web form and same controls , Upon create , validation appears as before but it does not save.
Can anyone tell me the reason and the solution why despite validation control appears, it is saved to database?
Thanks for all your contribution
ASP.NET Mobile Controls
Apr 07, 2008 09:01 AM|podi|LINK
Have you validated your input ? Mobile versions of validator controls don't support client side validation, i.e. you must include
//save to db
in your code behind. You can perform only server side validation with mobile validation controls.
Apr 07, 2008 01:57 PM|Musafiir|LINK
Thank your for your reply.
If Page.IsValid Then