Abinash Behura

Abinash Behura

  • NA
  • 21
  • 3.6k

I want when click submit the page will be printed in pdf

Feb 2 2016 4:05 AM
Here is my code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintFresher.aspx.cs" Inherits="Print" EnableEventValidation="false" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<asp:Panel ID="Panel1" runat="server">
<div>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="conditional">
<ContentTemplate>
<body>
<table width="998" border="0" align="center" cellpadding="0" cellspacing="0" class="index">
<tr>
<td colspan="3"><table width="1000" border="0" cellpadding="0" cellspacing="0" class="index">
<tr>
<td width="288" valign="top"><img src="Images/online-councelling_01.jpg" width="235" height="152" /></td>
<td width="299" valign="top"><img src="Images/online-councelling_02.jpg" width="300" height="152" /></td>
<td width="259" valign="top"><img src="Images/online-councelling_03.jpg" width="223" height="152" /></td>
<td width="154" valign="top"><img src="Images/online-councelling_04.jpg" width="242" height="152" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="23" colspan="3" bgcolor="#076BA7"><table width="1000" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1002" height="12" align="center" class="Top_Button">HOME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ADMISSIONS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EDIT INFORMATION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRINT APPLICATION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGOUT </td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" colspan="3" align="center" valign="middle" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td colspan="3" valign="top" bgcolor="#FFFFFF"><table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="236" height="33" scope="row">&nbsp;</th>
<th width="131" align="center" valign="top" scope="row"><img src="Images/1.jpg" alt="1" width="31" height="29" /></th>
<th width="132" align="center" valign="top" scope="row"><img src="Images/2.jpg" alt="2" width="31" height="29" /></th>
<th width="133" align="center" valign="top" scope="row"><img src="Images/3.jpg" width="31" height="29" /></th>
<th width="122" align="center" valign="top" scope="row">&nbsp;</th>
<th width="123" align="center" valign="top" scope="row">&nbsp;</th>
<th width="76" scope="row">&nbsp;</th>
</tr>
<tr>
<th valign="middle" scope="row">&nbsp;</th>
<th valign="middle" scope="row"><img src="Images/Basic over.jpg" alt="b" width="131" height="44" /></th>
<th valign="middle" scope="row"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','Image/Service over.jpg',1)"><img src="Images/Service.jpg" alt="s" name="Image9" width="131" height="44" border="0" id="Image9" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','Image/Academic over.jpg',1)"></a></th>
<th valign="middle" scope="row"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','Image/Service over.jpg',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','Image/Print Over.jpg',1)"><img src="Images/Print.jpg" alt="p" name="Image10" width="132" height="44" border="0" id="Image10" /></a></th>
<th valign="middle" scope="row"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','Image/Payment over.jpg',1)"></a></th>
<th valign="middle" scope="row"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','Image/Print Over.jpg',1)"></a></th>
<th valign="middle" scope="row" >&nbsp;</th>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="3" align="center" valign="top" bgcolor="#FFFFFF"><table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<th width="37" scope="row"><img src="Images/1.jpg" alt="1" width="31" height="29" /></th>
<th width="407" class="heading_font" scope="row">BASIC INFORMATION </th>
<th width="18" scope="row">&nbsp;</th>
<th width="436" scope="row">&nbsp;</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th height="24" colspan="3" valign="middle" class="heading_detail_font" scope="row">Please Fill up the following information in details to take part in e- Registration </th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(I) Select a Course </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="DrpLabel" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(II) Name of the Aplicant (Dr):</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblname" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row"> (III) Father's Name </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="fathersname" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(IV) Name of the Husband (For married female applicants) </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblHusband" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(V) Valid E-mail ID (All the communication will be made in this address only, So give a valid e-mail) </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblemail" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(VI) Landline Telephone No</th>
<th valign="top" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row"><table width="436" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="70" valign="middle" scope="row">
<asp:Label ID="lblstdcode" runat="server" Text="Label"></asp:Label>
<th width="13" valign="middle" scope="row">&nbsp;</th>
<th colspan="2" valign="middle" scope="row">
<asp:Label ID="lblphnno" runat="server" Text="Label" Visible="False"></asp:Label>
</th>
</tr>
<tr>
<th align="center" valign="middle" class="Top_Button style12" scope="row">(STD Code) </th>
<th valign="middle" scope="row">&nbsp;</th>
<th width="216" align="center" valign="middle" class="Top_Button style12" scope="row">(Phone No) </th>
<th width="137" valign="middle" scope="row">&nbsp;</th>
</tr>
</table></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(VII) Mobile No </th>
<th valign="top" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row"><table width="436" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" valign="middle" scope="row">
<asp:Label ID="lblmob" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th width="299" align="center" valign="middle" class="Top_Button style12" scope="row">(Don't put zero before Mob No) </th>
<th width="137" valign="middle" scope="row">&nbsp;</th>
</tr>
</table></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(VIII) Date of Birth (As per Matriculation Certificate) </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblDob" runat="server" Text="Label"></asp:Label>
<%-- <cc1:CalendarExtender ID="txtdob_CalendarExtender" runat="server"
TargetControlID="txtdob"></cc1:CalendarExtender>--%>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(IX) Sex</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<label>
&nbsp;<asp:Label ID="lblsex" runat="server" Text="Label"></asp:Label>
</label></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(X) Reserved Category </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblreserved" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(XI) Domicile / Resident of State </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lbldomicle" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">
<%--<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
<tr>
<th width="37" scope="row">&nbsp;</th>
<th width="407" class="heading_font" scope="row">(XII) AIPGMEE INFORMATION DETAILS</th>
<th width="18" scope="row">&nbsp;</th>
<th width="436" scope="row">&nbsp;</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th height="24" colspan="3" valign="middle" class="heading_detail_font" scope="row">Candidates are advised to provide their accurate information (AIPGMEE Testing ID and Score) in below mentioned Text Boxes, failing which, their candidature will not be considered. No descripancies in this regard will be entertained and the application will be outrightly rejected.</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(a) AIPGMEE Testing ID</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">(b) AIPGMEE Score (Out of 1200) </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row"><table width="304" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="332">
<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" valign="middle"><span class="Top_Button style12">(Maximum 4 digit after Decimal Point)</span></td>
</tr>
</table></th>
</tr>
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
</table>--%></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
<tr>
<th width="37" scope="row">&nbsp;</th>
<th width="407" class="heading_font" scope="row">(XIII) MBBS PARTICULARS </th>
<th width="18" scope="row">&nbsp;</th>
<th width="436" scope="row">&nbsp;</th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th colspan="3" valign="middle" class="Form_Text" scope="row"><table width="495" height="53" border="1" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC">
<tr>
<th width="158" height="24" valign="middle" class="Form_Text" scope="row">MCI Registration No. </th>
<th width="189" valign="middle" class="Form_Text" scope="row">Institute from which Passed </th>
<th width="130" valign="middle" class="Form_Text" scope="row">Year of Passing </th>
</tr>
<tr>
<th height="24" valign="middle" scope="row">
<span class="Small_Size_Text_Box">
<asp:Label ID="lblMcino" runat="server" Text="Label"></asp:Label>
&nbsp;</span></th>
<th valign="middle" scope="row">
<asp:Label ID="lblinst" runat="server" Text="Label"></asp:Label>
</th>
<th valign="middle" scope="row">
<span class="Small_Size_Text_Box">
<asp:Label ID="lblyear" runat="server" Text="Label"></asp:Label>
&nbsp;</span></th>
</tr>
</table></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th colspan="3" class="heading_font" scope="row">(XIV) JOB PARTICULARS (Only for those, who are in State Govt. Jobs as on the date of application) </th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th colspan="3" valign="middle" class="Form_Text" scope="row"><table width="426" height="53" border="1" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC">
<tr>
<th width="208" height="24" valign="middle" class="Form_Text" scope="row">Present Place of Posting </th>
<th width="205" valign="middle" class="Form_Text" scope="row">District (CDMO Office) </th>
</tr>
<tr>
<th height="24" valign="middle" scope="row">
<span class="Small_Size_Text_Box">
<asp:Label ID="lblpresent" runat="server" Text="Label"></asp:Label>
&nbsp;</span></th>
<th valign="middle" scope="row">
<span class="Small_Size_Text_Box">
<asp:Label ID="lblCDMo" runat="server" Text="Label"></asp:Label>
&nbsp;</span></th>
</tr>
</table></th>
</tr>
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
<tr>
<th height="10" colspan="4" scope="row"></th>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<th height="10" colspan="5" scope="row"></th>
</tr>
<tr>
<th width="37" scope="row">&nbsp;</th>
<th colspan="4" class="heading_font" scope="row">(XV) ADDRESS FOR CORRESPONDENCE </th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th width="407" height="24" valign="middle" class="heading_detail_font" scope="row">Permanent Address </th>
<th width="23" height="24" valign="middle" class="heading_detail_font" scope="row">
&nbsp;</th>
<th height="24" colspan="2" class="heading_detail_font" scope="row">Present Address </th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th valign="middle" class="Form_Text" scope="row">&nbsp;</th>
<th valign="middle" scope="row">&nbsp;</th>
<th width="20" scope="row">
<asp:CheckBox ID="CheckBox1" runat="server" Text="Same As"
onclick="copyvalue()" />
</th>
<th width="411" class="Form_Text" scope="row"><%--<strong>Same As </strong>--%></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th colspan="4" valign="middle" class="Form_Text" scope="row"><table width="861" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="430" scope="row"><table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="176" valign="middle" class="Form_Text" scope="row">At / Plot No </th>
<th width="16" valign="middle" class="Form_Text" scope="row">:</th>
<th width="238" valign="middle" scope="row">
<asp:Label ID="lblplot" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">PO / Taluk / Street</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblpo" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">Via / Ward No </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblvia" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">District</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblDistrict" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">Pin</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblpin" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">State</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblstate" runat="server" Text="Label"></asp:Label>
</th>
</tr>
</table></th>
<th width="431" scope="row"><table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="176" valign="middle" class="Form_Text" scope="row">At / Plot No </th>
<th width="16" valign="middle" class="Form_Text" scope="row">:</th>
<th width="238" valign="middle" scope="row">
<asp:Label ID="lblplot0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">PO / Taluk / Street</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblpo0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">Via / Ward No </th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblvia0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">District</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblDistrict0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">Pin</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblpin0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
<tr>
<th valign="middle" class="Form_Text" scope="row">State</th>
<th valign="middle" class="Form_Text" scope="row">:</th>
<th valign="middle" scope="row">
<asp:Label ID="lblstate0" runat="server" Text="Label"></asp:Label>
</th>
</tr>
</table></th>
</tr>
</table></th>
</tr>
<tr>
<th height="10" colspan="5" scope="row"></th>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="style13">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">
&nbsp;</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="style13">&nbsp;</td>
<td bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">
&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><div align="center"></div></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#FFFFFF" class="style13">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="BtnPrint" runat="server" Text="PRINT"
onclick="BtnPrint_Click" />
<label>
&nbsp;</label></td>
<td width="15" bgcolor="#FFFFFF">&nbsp;</td>
<td width="493" valign="middle" bgcolor="#FFFFFF">
<asp:Button ID="btncancel" runat="server" Text="CANCEL" />
</td>
</tr>
<tr>
<td colspan="3" valign="bottom" bgcolor="#FFFFFF"><table width="1000" border="0" cellpadding="0" cellspacing="0" class="index">
<tr>
<td width="264" valign="bottom">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</td>
<td width="736" valign="bottom"><table width="730" border="0" cellpadding="0" cellspacing="0" class="footer_table">
<tr>
<td width="541" valign="middle" class="footer style6">&nbsp;</td>
<td width="369" align="right" valign="middle" class="footer"><em>Technical Help Line-0674-2384894, M-9776640400 </em>&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="bottom">&nbsp;</td>
<td valign="bottom">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
<</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="BtnPrint" />
</Triggers>
</asp:UpdatePanel>
</asp:Panel>
</div>
</form>
</body>
</html>
 

Answers (5)