This is my aspx view
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MVCECUDataTrackingSystem.ViewModels.ShippingViewModel>" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta name="viewport" content="width=device-width" />
<title>ExporttoPDF</title>
<h2 style="text-align:right">Shipper</h2>
</head>
<body>
<%----%>
<%----%>
<div id="divExport">
<table style="height:100px;"></table>
<table style="">
<pre lang="text"><%--
>
Attention <%:Html.DisplayFor(model => model.AttentionTo)%>
Date<%:Html.DisplayFor(model => model.SubmittedDate)%>
Location<%:Html.DisplayFor(model => model.Location)%>
Shipper Type<%:Html.DisplayFor(model => model.ShipperType)%>
Address<%:Html.DisplayFor(model => model.Address)%>
Order Completed<%:Html.DisplayFor(model => model.OrderCompleted)%>
City/State/Zip<%:Html.DisplayFor(model => model.City_State_Zip)%>
GEE Program No<%:Html.DisplayFor(model => model.GEEProgramNo)%>
WBS No<%:Html.DisplayFor(model => model.WBSNo)%>
Customer No<%:Html.DisplayFor(model => model.CustomerNo)%>
OUC<%:Html.DisplayFor(model => model.OUCNo)%> --%>
<%--
Comment <%:Html.TextAreaFor(model => model.CustomerNo, new { })%>--%>
Comment | <%:Html.DisplayFor(model => model.CustomerNo, new {Style="width:1125px" })%> |
<% foreach (var item in Model.ShipDetails)
{%>
<%-- page-break-inside: avoid--%>
<% } %>
ECS ID | Part No | Serial No | Buffers | Buffer Part No | Buffer Serial No | Part Name | Amount(In Dollars) |
---|
<%:item.ECSID%> | <%: item.PartNo%> | <%: item.SerialNo%> | <%: item.Buffers%> | <%: item.BufferPartNo%> | <%: item.BufferSerialNo%> | <%: item.PartName%> | <%: item.Amount%> |
Shipper: |
Print Name:<%:Html.DisplayFor(model => model.UserName)%>_________________________________ Signature:_________________________________ Date:___________ |
Receiver: |
Print Name:_________________________________ Signature: _________________________________ Date:_____________ |
<%--
<%:Html.ActionLink("Download PDF", "DownloadPDF", new { shipId = Model.ShipperNo })%>
--%>
<%-- <% }%>--%>
<%-- <% }%>--%>