"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:Oa**************@TK2MSFTNGP14.phx.gbl...
that'll only work for client-side validation. Ie, it won't work in
firefox..
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Newmister" <mn********@iwanttss.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl... this.butCreateLetter.Attributes.Add("onClick", "if
(typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); return
CreateLetter();");
yes I am aware of it, this webpage is for Intranet and this webpage uses
ActiveX to open Word template so user has to use IE.
I have found the solution to stop executing JScript when validation fails:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("if (typeof(Page_ClientValidate) == 'function') { ");
sb.Append("if (Page_ClientValidate() == false) { return false } else {return
CreateLetter(); }} ");
Thank you for all the help!!!