Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I have an issue to fixed header in asp.net with Master Page

Please advise me

Thank you

Maideen

What I have tried:

ASP.NET
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
<div class="card  card-darkblue">
    <div class="card-header">
        <h3 class="card-title"><asp:Label ID="lblaction" runat="server" Text="Property Master"></asp:Label></h3>
    </div>
</div>
<asp:UpdatePanel id="UpdatePanel1" runat="server">
    <ContentTemplate>
        <fieldset>

                <div class="row">
                    <div class="col-lg-3">
                        <asp:TextBox ID="txtSearch" runat="server" CssClass="form-control textcolor" placeholder="search"></asp:TextBox>
                    </div>
                    <div class="col-lg-7">
                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-info btnsize" />
                        <asp:Button ID="btnNew" runat="server" Text="Add" CssClass="btn btn-info btnsize"  />
                        <asp:Button ID="btnEdit" runat="server" Text="Edit" CssClass="btn btn-info btnsize"  />
                        
                    </div>
                </div>
                 <br />   
           <div>

                <div class="row">
                   <div class="col-lg-12">
                            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False" 
                                BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                                PageSize="15">
                            <Columns>
                                <asp:CommandField ShowSelectButton="True">
                                <ItemStyle Width="50px" />
                                </asp:CommandField>
                                <asp:BoundField DataField="id" HeaderText="ID"/>
                                <asp:BoundField DataField="code" HeaderText="Code"/>
                                <asp:BoundField DataField="ProjectCode" HeaderText="Project Code"/>
                                <asp:BoundField DataField="PTNo" HeaderText="PT No"/>
                                <asp:BoundField DataField="LotNo" HeaderText="LotNo"/>
                                <asp:BoundField DataField="Category" HeaderText="Category"/>
                                <asp:BoundField DataField="LandType" HeaderText="Land Type"/>
                                <asp:BoundField DataField="Propertytype" HeaderText="Property Type"/>
                                <asp:BoundField DataField="District" HeaderText="District"/>
                                <asp:BoundField DataField="Measurement_Type" HeaderText=""/>
                                <asp:BoundField DataField="LandArea" HeaderText="Area"/>
                                <asp:BoundField DataField="State" HeaderText="State"/>
                                <asp:BoundField DataField="Status" HeaderText="Status"/>

                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                <RowStyle ForeColor="#000066" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                            <SortedAscendingHeaderStyle BackColor="#007DBB" />
                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                            <SortedDescendingHeaderStyle BackColor="#00547E" />
                        </asp:GridView>
                    </div>
                </div>


        </fieldset>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
Posted
Updated 5-Jan-20 16:56pm

1 solution

With CSS. You use CSS to control elements on a page
 
Share this answer
 

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