why does comparison trade have vacant quarrel during top?
in asp.net, i am exporting information comparison simply contracting dataset gridview following sourroundings contenttype excel.
my aspx page unequivocally rudimentary looks this:
<%@ page language="c#" autoeventwireup="true" codebehind="examexportreport.aspx.cs" inherits="cabi.camcentral.web.pages.utility.examexportreport" %>
<html>
<body>
<form id="form1" runat="server">
<asp:gridview
id="gridexam"
autogeneratecolumns="true"
runat="server">
</asp:gridview>
</form>
</body>
</html>
in page_load slight formula behind, i am doing this:
protected vacant page_load(object sender, eventargs e)
{
bindgrid();
response.contenttype = "application/vnd.ms-excel";
response.addheader("content-disposition", "attachment; filename=examexport.xls");
}
generally, all works fine, comparison record pops adult right data. problem comparison record always ends adult vacant initial quarrel right above buttress headers. i only can't figure out causing this. maybe it's something form tag? maybe i need supplement styling something frame out stuffing margins? i've attempted garland things nonetheless i only can't absolved dang initial vacant row. anyone else run this? any solutions?
Comments
Post a Comment