RE: Prevent WP field Validation in Edit Mode

2012-01-23 Thread Paul Noone
Sent: Tuesday, 24 January 2012 12:28 PM To: ozMOSS Subject: RE: Prevent WP field Validation in Edit Mode Thanks Ishai. I was getting the correct mode. The final solution involved disabling the RegularExpressionValidator by default - and adding an ELSE clause! Without it, validation was ALWAYS set to

RE: Prevent WP field Validation in Edit Mode

2012-01-23 Thread Paul Noone
false; lblMsg.Text = "" + mode + " mode: Validation is disabled."; } From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Ishai Sagi Sent: Tuesday, 24 January 2012 12:17 PM To: ozMOSS Subject: RE: Prevent WP field Validation in Edit Mode Try to che

RE: Prevent WP field Validation in Edit Mode

2012-01-23 Thread Ishai Sagi
y 2012 11:48 AM To: ozMOSS Subject: RE: Prevent WP field Validation in Edit Mode I've disabled my RegularExpressionValidator by default and am now only enabling it if the page is in BrowseDisplayMode. I've also moved the code into the CreateChildControls method as some people have su

RE: Prevent WP field Validation in Edit Mode

2012-01-23 Thread Paul Noone
I've disabled my RegularExpressionValidator by default and am now only enabling it if the page is in BrowseDisplayMode. I've also moved the code into the CreateChildControls method as some people have suggested but validation still occurs in ANY mode! If I comment out line 8 then it never occurs