I created a gridview page which displays the data properly on the local machine but when uploaded to web server shows a blank page with no errors. The web server supports asp.net. I put some text on the page which did show but no gridview. With no errors, I don't know what could be wrong. Here is the code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<form id="form1" runat="server">
<asp:AccessDataSource id="AccessDataSource1" runat="server" DataFile="varsity.mdb" SelectCommand="SELECT [Field1], [Field2], [Field3], [Field4], [Field5], [Field6] FROM [Varsity3]">
</asp:AccessDataSource>
<asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
<Columns>
<asp:boundfield DataField="Field1" HeaderText="Field1" SortExpression="Field1">
</asp:boundfield>
<asp:boundfield DataField="Field2" HeaderText="Field2" SortExpression="Field2">
</asp:boundfield>
<asp:boundfield DataField="Field3" HeaderText="Field3" SortExpression="Field3">
</asp:boundfield>
<asp:boundfield DataField="Field4" HeaderText="Field4" SortExpression="Field4">
</asp:boundfield>
<asp:boundfield DataField="Field5" HeaderText="Field5" SortExpression="Field5">
</asp:boundfield>
<asp:boundfield DataField="Field6" HeaderText="Field6" SortExpression="Field6">
</asp:boundfield>
</Columns>
</asp:GridView>
</form>
</BODY>
</HTML>
<HTML>
<HEAD>
</HEAD>
<BODY>
<form id="form1" runat="server">
<asp:AccessDataSource id="AccessDataSource1" runat="server" DataFile="varsity.mdb" SelectCommand="SELECT [Field1], [Field2], [Field3], [Field4], [Field5], [Field6] FROM [Varsity3]">
</asp:AccessDataSource>
<asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
<Columns>
<asp:boundfield DataField="Field1" HeaderText="Field1" SortExpression="Field1">
</asp:boundfield>
<asp:boundfield DataField="Field2" HeaderText="Field2" SortExpression="Field2">
</asp:boundfield>
<asp:boundfield DataField="Field3" HeaderText="Field3" SortExpression="Field3">
</asp:boundfield>
<asp:boundfield DataField="Field4" HeaderText="Field4" SortExpression="Field4">
</asp:boundfield>
<asp:boundfield DataField="Field5" HeaderText="Field5" SortExpression="Field5">
</asp:boundfield>
<asp:boundfield DataField="Field6" HeaderText="Field6" SortExpression="Field6">
</asp:boundfield>
</Columns>
</asp:GridView>
</form>
</BODY>
</HTML>