Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a web page
Message
 
À
08/12/2006 15:24:54
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01176074
Message ID:
01176249
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform