Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a web page
Message
 
To
08/12/2006 15:24:54
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01176074
Message ID:
01176249
Views:
8
>Thanks Paul,
>I couldn't get that to work but I found this solution that I got to work:
>Suppose that your button name is btnTest then in Page_Load method do this.btnTest.Attributes["onclick"] = "javascript:window.print();";

Dang, the casing for methods in JS always gets me. Yeah, it looks like it should be print(), not Print().
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform