Skip to content

Print web page in c#

priya mishra

Asked Oct 17, 2014, 9:33 PM EDT1 answer
Share
LinkedInX
i want to print my web page in my project but after the printing it add one line in that form i.e http://localhost.52487/dummy2/print.aspx .i want to hide this line .this line is disply automatically.
 
Thank you 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    You should use client side code to do this,
    with an asp:button :

    <asp:Button ID="Button1" runat="server" CausesValidation="False" OnClientClick="javascript:self.print();return false;" Text="Button" UseSubmitBehavior="False" />

    But it would be easier with a regular html button..
    0