Fix header-elements in ASP.Net

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
 
A

Alexey Smirnov

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
 
J

JM

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
 
A

Alexey Smirnov

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.
 
M

Martin Trabold

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.
 
A

Alexey Smirnov

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top