Masterpage problem
-
Hi I am using .net 2.0 , I am trying to validate a text box control inside a webpart zone and the webpart zone is in a page which use a master page. Ii have tried giving all the possible id of the control (ID, UniqueID & ClientID) but at runtime requiredfieldvalidator not able to fiend the textbox control. What should I do to resulve the problem ? Regards Smruti Ranjan Rout.
-
Hi I am using .net 2.0 , I am trying to validate a text box control inside a webpart zone and the webpart zone is in a page which use a master page. Ii have tried giving all the possible id of the control (ID, UniqueID & ClientID) but at runtime requiredfieldvalidator not able to fiend the textbox control. What should I do to resulve the problem ? Regards Smruti Ranjan Rout.
when using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder. better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects... asithangae
-
when using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder. better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects... asithangae
Dear Asithangae Thanks for your repay , of course I can use js to validate but it should also work for requiredfieldvalidation control. As I am using .clientId which return the client side id that is id in the browser. Please let me know if there any way out. Regards Smruti:) smruti