C
cmrchs
Hi,
how can I execute a window.print() (in javascript)
on a ASP-button control but only when all validation-controls on the page pass the validation-test.
I tried using in the Page_Load() :
Button2.Attributes.Add("OnClick", "javascript:window.print();");
It works well ..... too well actually 'cause it always prints, even when some validation-controls don't pass the validation-test.
any ideas ?
thnx
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
how can I execute a window.print() (in javascript)
on a ASP-button control but only when all validation-controls on the page pass the validation-test.
I tried using in the Page_Load() :
Button2.Attributes.Add("OnClick", "javascript:window.print();");
It works well ..... too well actually 'cause it always prints, even when some validation-controls don't pass the validation-test.
any ideas ?
thnx
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...