Fix header-elements in ASP.Net

  • Thread starter Thread starter Martin Trabold
  • Start date Start date
M

Martin Trabold

Hi NG,

I've got an ASP.NET page that has several header elements like
ASP:SiteMapPath, ASP:Label, etc.
Below these header elements I placed an ASP.NET gridview element that can
have many rows.
I want the header elements to be fixed in the page if the gridview rows,
because of too many rows, need to be scrolled. I tried to solve it with CSS
(overflow:scroll, overflow:hidden, height:x%) and DIV-elements. This
solution works fine for normal HTML-pages but not in ASP.NET.

If anybody has a solution for that problem I would be very pleased.


Thank you

Martin
 
Hi NG,

I've got an ASP.NET page that has several header elements like
ASP:SiteMapPath, ASP:Label, etc.
Below these header elements I placed an ASP.NET gridview element that can
have many rows.
I want the header elements to be fixed in the page if the gridview rows,
because of too many rows, need to be scrolled. I tried to solve it with CSS
(overflow:scroll, overflow:hidden, height:x%) and DIV-elements. This
solution works fine for normal HTML-pages but not in ASP.NET.

If anybody has a solution for that problem I would be very pleased.

Thank you

Martin

Hi Martin,

why it does not work for ASP.net? This is the only way to fix header.
You can also try to use iframe but this would require to change a lot
on the page.

Hope this helps
 
I want the header elements to be fixed in the page if the gridview rows,
because of too many rows, need to be scrolled. I tried to solve it with
CSS (overflow:scroll, overflow:hidden, height:x%) and DIV-elements.

Wouldn't you just use "position: fixed" to pin the header div in place?

John McTaggart
 
Hi all,

it works fine now. Either it was a problem with the Doc-Type of the page or
there are some differences in the IIS-Webserver to the ASP.Net development
server.

Thank you

Martin

Wouldn't you just use "position: fixed" to pin the header div in place?

John McTaggart

He wanted to scroll the grid area only, not the entire page.
 
Hi all,

it works fine now. Either it was a problem with the Doc-Type of the page or
there are some differences in the IIS-Webserver to the ASP.Net development
server.

Thank you

Martin





He wanted to scroll the grid area only, not the entire page.

IIS can't be a problem here, it just does a server part. CSS applies
style at the client according to the Doc-Type of the document and of
course it depends on it...
 
Back
Top