B
Ben
Hi All,
I have a form which requires input, has conditional server side
validations and print functionality. There is a print button which does
client side validation & then custom validation, if all passes, prints
the form with the following code:
Response.Write("<script language='javascript'>");
Response.Write("window.print()");
Response.Write("</script>");
My problem is that this causes the form to lose its style classes as
this is written at the top before head or any other html tags are
rendered.I do have media="print" for the style sheets.
Is there a better way to do this ?I have to get this fixed by end of the
day today, so any help is greatly appreciated.
Thanks,
Ben
I have a form which requires input, has conditional server side
validations and print functionality. There is a print button which does
client side validation & then custom validation, if all passes, prints
the form with the following code:
Response.Write("<script language='javascript'>");
Response.Write("window.print()");
Response.Write("</script>");
My problem is that this causes the form to lose its style classes as
this is written at the top before head or any other html tags are
rendered.I do have media="print" for the style sheets.
Is there a better way to do this ?I have to get this fixed by end of the
day today, so any help is greatly appreciated.
Thanks,
Ben