Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am getting some unexpected error.

When I run my web page in local system the gird view in one of the page is loading but If I upload the same file in my domain server It was not loading.

I tried to see the page source in the page loaded but Inside of grid view i saw a
tag.

Can any one help me to solve the problem

"""""""""""""""""""""""""""""""""""""""""""""""""""""""
XML
<asp:GridView ID="gv_tabledetail" runat="server" AutoGenerateColumns="False"
                     DataSourceID="ods_data" EnableModelValidation="True"
                     DataKeyNames="page_code" Enabled="False" BackColor="White"
                     BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3"
                     GridLines="Horizontal">
                     <AlternatingRowStyle BackColor="#F7F7F7" />
                     <Columns>
                         <asp:CommandField ShowEditButton="True" />
                         <asp:BoundField DataField="pageName" HeaderText="Page Name"
                             SortExpression="pageName" ReadOnly="True" />
                         <asp:BoundField DataField="page_code" HeaderText="Page Code"
                             SortExpression="page_code" ReadOnly="True" />
                         <asp:CheckBoxField DataField="access" HeaderText="Access"
                             SortExpression="access" />
                         <asp:CheckBoxField DataField="deny_edit" HeaderText="Deny Edit"
                             SortExpression="deny_edit" />
                     </Columns>
                     <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                     <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                     <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                     <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                     <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                 </asp:GridView>
                 <asp:ObjectDataSource ID="ods_data" runat="server" SelectMethod="getDetials"
                     TypeName="Management_System._User.Management.Authorisations"
                     UpdateMethod="UpdateTableToDataBase">
                     <UpdateParameters>
                         <asp:Parameter Name="page_code" Type="String" />
                         <asp:Parameter Name="access" Type="Boolean" />
                         <asp:Parameter Name="deny_edit" Type="Boolean" />
                     </UpdateParameters>
                 </asp:ObjectDataSource>
Posted
Comments
Aravindba 27-Feb-14 1:03am    
pls provide error msg
dineshkumar51 27-Feb-14 3:36am    
I am not getting any error. The gridview is not loading when it runs from server
JB0301 6-Mar-14 20:37pm    
check your database connection or connection string.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900