Hi
I am using radbutton in my page for printing the web page. I have using the the javascript function OnClientClicked="javascript:self.print();return false;" for printing. But it didn't work. If i am using HTML or ASP button then it will work properly. Please give the solution for this problem.
Thanks,
Velkumar
 
 
 
 
                                I am using radbutton in my page for printing the web page. I have using the the javascript function OnClientClicked="javascript:self.print();return false;" for printing. But it didn't work. If i am using HTML or ASP button then it will work properly. Please give the solution for this problem.
Thanks,
Velkumar
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintDemo.aspx.cs" Inherits="PrintDemo" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>    <link rel="stylesheet" href="PrintStyleSheet.css" type="text/css" /></head><body>    <form id="form1" runat="server">    <div>        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">        </telerik:RadScriptManager>        <table style="width: 877px">            <tr style="height:20px; vertical-align:middle;"  >                <td align="center" id="headid">                    <asp:Label id="Heading" Text="Print checking " runat="server"></asp:Label>                </td>            </tr>            <tr>                <td align="center">                    <asp:Label ID="printContent" runat="server"></asp:Label>                </td>            </tr>            <tr>                <td style="height:20px;">                             </td>            </tr>            <tr>                <td align="center">                    <telerik:RadButton ID="printbtn" Text=" Print " OnClientClicked="javascript:self.print();return false;"  runat="server"></telerik:RadButton>                </td>            </tr>            <tr>                <td align="center">                   <asp:Button ID="printbutton" OnClientClick="javascript:self.print();return false;" Text="Print" runat="server" />                </td>            </tr>            <tr>                <td align="center">                    <input type="button" value="Print" onclick="JavaScript:window.print();" />                </td>            </tr>        </table>    </div>    </form></body></html>
